qt - flickering when using QGLWidget as the viewport of QGraphicsView -
i'm doing project qt 4.8.6 , running on embedded system(x11). in beginning, every thing fine, if open widget has code qgraphicsview.setviewport(new qglwidget)
in constructor function, flicker.
if replace qglwidget
qwidget
, fine. comparing difference between qglwidget
, qwidget
, have tried this:
qgraphicsscene* scene = new qgraphicsscene(this); qgraphicsview* view = new qgraphicsview (scene,this); view -> setviewport(new qglwidget); 1 view->viewport()->setwindowflags(qt::widget); 2 view->viewport()->setautofillbackground(false); 3 view->viewport()->setattribute(qt::wa_paintonscreen,false); 4 view->viewport()->setattribute(qt::wa_opaquepaintevent);
however doesn't fix issue. issue?
Comments
Post a Comment