c++ - QQuiickWidgets within TabWidgets crashes when rendering OpenGL code -


qquickwidgets embedded in qtabwidget container, crashes upon rendering custom opengl code, via qml, qquickitem , qsgnode.

the crash or scene flickering happens when click on other tabs on qtabwidget , return rendering tab.

qquickwidget* m_quickwidget = new qquickwidget;   qtabwidget *tabs = new qtabwidget(this);  tabs->addtab(m_quickwidget,"tab rendering"); tabs->addtab(new qwidget(),"tab 1");  m_quickwidget->setresizemode(qquickwidget::sizerootobjecttoview ); m_quickwidget->setsource(source); setcentralwidget(tabs); 

the above scenario runs peacefully without problem when using qquickviews:

qtabwidget *tabs = new qtabwidget(this); qwidget* vw = qwidget::createwindowcontainer(m_quickwidget); tabs->addtab(vw,"tab rendering"); tabs->addtab(new qwidget(),"tab 1"); 

i have attached qt project emphasizing problem

back trace more info

hi have seen similar things including black flickering, 5.5 seems have made black flicker go away. have tried that?

also, recommend post on qt bug tracker qt dev team can recreate , fix problem.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -