QT openGL widget to use LittlevGL
Implements a QOpenGLWidget based class to integrate LittlevGL into a QT application.
On the folder example/ there is a QTcreator project (example.pro) that runs one of LittlevGL demo.
- Add LittlevGL source code to your QTproject
- Add the lvGLwidget/ source files to your QTproject
- Configure the .pro file to your needs, example:
DEFINES += LV_CONF_INCLUDE_SIMPLE
DEFINES += LV_EX_CONF_INCLUDE_SIMPLE
INCLUDEPATH += "../" \
"../lvgl/" \
"../lvgl/src" \
"../lvGLwidget/"
- Add an OpenGL widget (QOpenGLWidget) to your form.
- Select the new widget and Promote widget to "LVGLwidget"