Some how-to's for a few Qt cool features
Some examples of how to animate some QPixMap objects. Examples shown here consist of rotating a simple png image contained within a QLabel. Principle can easily be extended to other features.
Note: To create an animation that only interract on basic properties of a widget (such as position or size), you may rather consider QPropertyAnimator class.
Available examples are:
- Constant animation: Image rotates smoothly at constant speed.
- Animation with predefined profile: Speed follows a predefined profile for speed. There are several profiles available in Qt.
- Custom animation: Equation for animation computation is user-defined. Example shown here is a non linear movement.
A quick introduction to QssStyleSheet and also to font file.
- Load and apply a stylesheet stored in a file
- QssStyleSheet syntax
- Load a font file a make it available to application (incl. stylesheet)
A quick overview of what's possible with QML
- Customizing a busy indicator
- A bouncing ball made with QML animations
- Custom component to set a level (sound level, brightness level, etc.)
- Model/View implementation with QML with deletegates, headers, collapsible groups, insertion/deletion, smooth animations