Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
strong flicker when set QGLWidget as the viewport of QGraphicsView
hello qter last edited by hello qter
I'm doing a project with qt 4.8.6 and running it on embedded system(x11). In the beginning, every thing is fine, but if I open a widget which has code QGraphicsView.setViewport(new QGLWidget) in constructor function, it will flicker.
If I replace the QGLWidget with QWidget, it is fine. By comparing the difference between QGLWidget and QWidget, I have tried this:
QGraphicsScene* scene = new QGraphicsScene(this);
QGraphicsView* view = new QGraphicsView (scene,this);
view -> setViewport(new QGLWidget);
However this doesn't fix the issue. What could be the issue?