What is QML?
The following pages contain more information about QML:
- First Steps with QML – begin using QML with these examples
- Creating Qt Quick Projects in Qt Creator
- The QML Reference – reference about the QML constructs and features
- QML Coding Conventions
- Glossary of QML Terms
What is Qt Quick?
Qt Quick is the standard library of types and functionality for QML. It includes visual types, interactive types, animations, models and views, particle effects and shader effects. A QML application developer can get access to all of that functionality with a single import statement.
QtQuick QML library is provided by the Qt Quick module. For in-depth information about the various QML types and other functionality provided by Qt Quick, please see the Qt Quick module documentation.
QML User Interfaces
For creating or customizing graphical user interfaces, Qt Quick adds visual types, animation types, and other QML types in addition to the standard QML types from Qt QML. Qt Quick Designer is integrated within Qt Creator and supports
QtQuick 2 from Qt Creator version 2.7 and onwards.
- Visual types in QML
- Responding to User Input in QML
- Animations in QML
- Displaying Text in QML
- Layouts in QML
- Style and Theme Support
Buttons, Menus, and other Controls
For a set of basic UI controls, the Qt Quick Controls module implements several controls such as buttons, menus, and views. These controls mimic the native behavior found in different platforms such as Windows, OS X, and Linux.
Several Qt modules provide types for creating special effects in applications. Their respective pages contain more information about specific uses.
Viewing Web Content in QML Applications
Sensors, Gestures, and Touch Interfaces
The Qt Sensors module allows applications to read information from sensors such as accelerometers and tilt sensors. There is a common QML API for different platforms and can be extended in C++.
- Qt Sensors QML Types
- Qt Sensors Examples
- Compatibility Map – lists support level for different mobile platforms
The Qt Multimedia module enables applications to handle various media content with a convenient set of QML types. These QML types can be extended in C++.
Several Qt modules provide QML APIs for networked and mobile devices. The QML types access Bluetooth, Near-Field Communications (NFC), and GPS-enabled devices.
Code Samples and Demos
To learn more about uses of QML code, there are several code samples which show how QML types are used. In addition, there are several demos which show how QML code is used in applications.
- Getting Started Programming with Qt Quick – a tutorial showing the creation of a simple QML text editor.
- Qt Quick Examples and Tutorials
Advanced Application Development Topics
- Deploying QML Applications
- Performance Considerations and Suggestions
- Internationalization and Localization
- Testing and Debugging
Other QML Modules
Qt Quick only provides basic visual types and much of Qt’s functionality is exposed to QML through other modules. If you require the functionality of those modules, you should browse their QML documentation.
The All QML APIs by Module contains a list of all QML modules in Qt 5.