Qt 4.8
|
The QML global Qt object provides useful enums and functions from Qt. More...
The QML global Qt object provides useful enums and functions from Qt.
QmlGlobalQtObject
The Qt
object is a global object with utility functions, properties and enums.
It is not instantiable; to use it, call the members of the global Qt
object directly. For example:
The Qt object contains the enums available in the Qt Namespace. For example, you can access the Qt::LeftButton and Qt::RightButton enum values as Qt.LeftButton
and Qt.RightButton
.
data types. This is primarily useful when setting the properties of an item when the property has one of the following types:
color
- use QML:Qt::rgba() "Qt.rgba()", QML:Qt::hsla() "Qt.hsla()", QML:Qt::darker() "Qt.darker()", QML:Qt::lighter() "Qt.lighter()" or QML:Qt::tint() "Qt.tint()" rect
- use QML:Qt::rect() "Qt.rect()" point
- use QML:Qt::point() "Qt.point()" size
- use QML:Qt::size() "Qt.size()" vector3d
- use QML:Qt::vector3d() "Qt.vector3d()" There are also string based constructors for these types. See QML Basic Types for more information.
The Qt object contains several functions for formatting QDateTime, QDate and QTime values.
The format specification is described at QML:Qt::formatDateTime "Qt.formatDateTime".
items from files or strings. See Dynamic Object Management in QML for an overview of their use.