/Qt-tips

Some how-to's for a few Qt cool features

Primary LanguageQMLGNU Lesser General Public License v2.1LGPL-2.1

Qt-tips

Some how-to's for a few Qt cool features

LabelPixmapAnimator

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:

  1. Constant animation: Image rotates smoothly at constant speed.
  2. Animation with predefined profile: Speed follows a predefined profile for speed. There are several profiles available in Qt.
  3. Custom animation: Equation for animation computation is user-defined. Example shown here is a non linear movement.

QssStyleSheet

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)

QtQml

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