[Interest] QML Custom Scene Graph animation?

Mark markg85 at gmail.com
Tue Jun 4 22:51:42 CEST 2013


Hi,

I'm playing with custom QML components in Scene Graph. The kind of
component that i want to make is a system monitor like component (and
learning Scene Graph while doing that is a big plus). Now i'm a bit
stuck in the animation area. I can - obviously - just draw a line in
some custom component and then move that component in either x or y
(or both) which will give the same results, but that's not what i'm
looking for.

What i'm looking for is the paintEvent alternative for Scene Graph. I
have "updatePaintNode" re-implemented and am drawing stuff in a
component, but how can i update it when the next frame is requested? I
don't know if i should use a timer, do i? Doesn't Scene Graph work
with vsync and shouldn't i be doing something with that? If so, how?

I kinda miss an example about making an animated component with Scene
Graph. Or if someone knows of one, please do link me to that.

Regards,
Mark



More information about the Interest mailing list