QtScript Bindings for Animations & States Classes
June 04, 2009 by Kent Hansen | Comments
As Eskil recently mentioned, the Animations & States classes are now part of qt/master. To celebrate, I've added some QtScript bindings for said classes to the QtScript generator project on gitorious; they can be found in the 4.6 branch.
Since the C++ classes have been designed with scriptability and declarative usage in mind, the bindings already seem to work pretty well. There's an example, AnimatedBox, showing basic usage of the APIs (gotta love that InOutElastic easing curve!).
While I'm here, I'd like to mention a nice little property that we added to QStateMachine: animationsEnabled. Set this property to false, and all animations for property changes will be disabled, i.e. all properties will be set immediately on state transitions. Useful for debugging (no animations that get in the way of the app logic), and when you get tired of all the bling.
Blog Topics:
Comments
Subscribe to our newsletter
Subscribe Newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
We're Hiring
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu