https://github.com/ufo-010/qopenglplot
Qt plotting widget
https://github.com/ufo-010/qopenglplot
cpp opengl qt5 widget
Last synced: 2 months ago
JSON representation
Qt plotting widget
- Host: GitHub
- URL: https://github.com/ufo-010/qopenglplot
- Owner: UFO-010
- License: mit
- Created: 2024-09-27T10:50:50.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T12:15:40.000Z (over 1 year ago)
- Last Synced: 2025-03-15T05:44:16.443Z (over 1 year ago)
- Topics: cpp, opengl, qt5, widget
- Language: C++
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
This is just a plain plotter made for real-time plotting with Qt, using OpenGL
## Requirements
C++11
Qt, version higher than 4
Hardware support for OpenGL version 3.3 or higher
## Usage
Check if you have supported OpenGL version
```
glxinfo | grep OpenGL
```
If you don't have it installed, install OpenGL dev files and tools
```
sudo apt-get install libgl1-mesa-dev mesa-utils
```
When you use qmake, you have to link OpenGL manually, for example
```QMake
QT += opengl
CONFIG += opengl
win32: LIBS += -lopengl32
```
You can find example .pro file in folder qmake
When you use cmake (which is recommended), add directory with this library, for example,
```CMake
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/sources/openglplot)
```
Then, you have link this library to your project
```CMake
find_library(OPENGLPLOT openglplot PATH_SUFFIXES openglplot)
target_link_libraries(${PROJECT_NAME} PRIVATE openglplot)
```
## TODO
- Add the ability to put two graphs in one widget
- Improve text rendering
- Improve text characters loading perfomance
- Improve smoothing
- Add power sybols to render numbers with more than 7 characters
- Eliminate text and axis jitter
- Add framebuffer copy if possible
- Add custom graph signatures
- Add captions support on the graph
- Add support for saving graph