[Interest] Running code in the scene graph renderer thread
Luca Carlon
carlon.luca at gmail.com
Wed Apr 3 11:04:44 CEST 2013
On Wed, Apr 3, 2013 at 10:56 AM, Samuel Rødal <samuel.rodal at digia.com> wrote:
> If you can get access to the QWindow you can qobject_cast to check that
> it's a QQuickWindow. In that case you can connect to the
> beforeRendering() signal of the QQuickWindow using a
> Qt::DirectConnection, which will cause your slot to be executed on the
> render thread before the rendering of a frame.
>
> --
> Samuel
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
Yes, that is what I thought I could do, but where can I get a
reference to the QQuickWindow? I'm reimplementing the
QMediaPlayerControl class. Or maybe from the parent of my
QMediaService subclass?
Thanks for your help.
Luca
More information about the Interest
mailing list