[Interest] QtQuick real-time meter widget question (QML Loader-related)

Gunnar Sletta gunnar.sletta at jolla.com
Wed Jan 8 07:15:49 CET 2014


On 03 Jan 2014, at 17:02, VStevenP <vstevenpavao at yahoo.com> wrote:

> I've created a real-time audio meter widget in QtQuick.  The meter is updated on a regular basis, and it is always visible on the top status bar of my app.
> 
> 1. Is there a way to run this meter so that it will not be blocked by any QML Loader activity?  (I have some launcher icons on a sidebar which control what QML is loaded to appear in the common "desktop" client area of my display.)
> 
> My hope is that the meter could be put directly into the scene graph somehow, and run on the render thread.  (I've had success doing that with the new YAnimator in Qt 5.2, but I don't know how to do this for my own QtQuick widget.)
> 

This should be very doable.

Have a look at examples/quick/scenegraph/threadedanimation for how to do the animation manually on the render thread and perhaps simplematerial or customgeometry for how to implement the actual node.

cheers,
Gunnar

> - VStevenP
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list