C
QtObject QML Type
A basic QML type. More...
Import Statement: | import QtQuick |
Since: | Qt Quick Ultralite 1.0 |
Instantiates: | Object |
Inherited By: | Item and KeyboardStyle |
Detailed Description
The QtObject type is a non-visual element which contains no properties.
It can be useful if you need an extremely lightweight type to enclose a set of custom properties:
import QtQuick 2.15 Item { QtObject { id: attributes property string name property int size } Text { text: attributes.name } }
It is also be useful for C++ integration: Types deriving from Qul::Object are available in QML.
Available under certain Qt licenses.
Find out more.