[Interest] QML and OpenGL conflicts

Marc Gilleron marc.gilleron at gmail.com
Thu Jun 4 12:01:15 CEST 2015

I'm currently integrating an application using OpenGL in a Qt GUI where QML
is mainly used. We may need one or even more OpenGL views rendered by our

But as soon as something Qt is shown, the application's rendering glitches
and sometimes crash, even if the Qt stuff is in a separate window.

We investigated the problem and found that both renderings were happening
in the same thread, and Qt was stealing the OpenGL context we setup in our
application (with a makeCurrent() I guess), creating random conflicts.

At first I thought that having a threaded Qt rendering could easily solve
the problem.
I saw that QtQuickWidget's rendering wasn't threaded, so I tried to use a
QtQuickView instead... with no luck.

This is a blocking problem for our project, and I would like to know if
there is a way to enable threaded rendering in QML, to prevent such

Platform: Windows

PS: I first started a thread here
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150604/5d05c120/attachment.html>

More information about the Interest mailing list