[Interest] Running code in the scene graph renderer thread

Samuel Rødal samuel.rodal at digia.com
Wed Apr 3 12:08:03 CEST 2013


On 04/03/2013 11:04 AM, Luca Carlon wrote:
> 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.
>>
> 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?

QMediaPlayerControl itself doesn't have any way to get a QWindow afaik. 
I'm not too familiar with QtMultimedia.

--
Samuel



More information about the Interest mailing list