Home · All Classes · All Functions · Overviews

QML Basic Types

QML uses a set of property types, which are primitive within QML. These basic types are referenced throughout the documentation of the QML elements. Almost all of them are exactly what you would expect.

actionThe action type has all the properties of QAction.
boolA boolean is a binary true/false value.
colorA color is a standard color name in quotes.
dateA date is specified as "YYYY-MM-DD".
fontA font type has the properties of a QFont.
intAn integer is a whole number, e.g. 0, 10, or -20.
listA list of objects.
pointA point is specified as "x,y".
realA real number has a decimal point, e.g. 1.2 or -29.8.
rectA rect is specified as "x, y, width x height".
sizeA size is specified as "width x height".
stringA string is a free form text in quotes, e.g. "Hello world!".
timeA time is specified as "hh:mm:ss".
urlA URL is a resource locator, like a file name.
vector3dA vector3d is specified as "x,y,z".


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0