Ok, I finally figured it out :-) The QML ApplicationWindow class has got a style now, and the default style for the background is to fill the entire area in gray. By adding a custom style with an empty item for the background it works again. i.e something like this:
style: ApplicationWindowStyle { background: Item {} } Although, this makes me wonder a bit. Is this really the recommended way of mixing QML and custom OpenGL? Could I use the new QOpenGLSceneWindow for this somehow? Cheers, Thomas On Fri, Dec 19, 2014 at 5:19 PM, Thomas Sevaldrud <tho...@silentwings.no> wrote: > > Hi, > > After upgrading to 5.4 my OpenGL applications no longer work. I am mixing > OpenGL and Quick components, like in this example: > > http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html > > I.e I have a class derived from QuickItem with a QObject-based renderer > that renders on the QQuickWindow::beforeRendering()-signal. > > This works nicely in 5.3, but in 5.4 my scene is painted over with light > gray. (I have traced this in AMD CodeXL and have verified that my scene is > rendered first, it is just painted over afterwards). It seems that this > happens when the QML scene graph is rendered. > > I know that a lot of GL-related have changed in 5.4, so I guess that there > is something that needs to be done differently, but I can't figure it out... > > The above mentioned example still works in 5.4, so it is probably > something I'm doing wrong :) > > Cheers, > Thomas > > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest