[Qt-interest] QML states changing

Thomas McGuire thomas.mcguire at kdab.com
Sun Aug 14 14:10:36 CEST 2011


Hi,

On Saturday, August 13, 2011 02:49:05 PM Konstantin Volkov wrote:
> I have a question, can we use timer events for change state of QML
> object. For example I want to make ciclic animation in my
> QDeclarativeContext widget. In origin qt i used timer (QTimer) in this
> case, but in QML i find only mouse and keys events.
> please any ideas.

QML has a timer class as well: http://doc.qt.nokia.com/latest/qml-timer.html.
Depending on how exactly your animation works, you could maybe also do it 
without states, and simply use an animation with the "loops" property set to 
"Animation.Infinite".

Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3637 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110814/ba8abbce/attachment.bin 


More information about the Qt-interest-old mailing list