There's moreā€¦

In Qt Quick, all its components have built-in properties such as width, height, and color that are attached to the components by default. However, Qt Quick also allows you to create your own custom properties and attach them to the components you declared in your QML script. A custom property of an object type may be defined in an object declaration in a QML document by adding the property keyword before the type (int, float, and so on) keyword, for example:

property int myValue;

You can also bind the custom property to a value by using a colon (:) before the value, as shown in the following code:

property int myValue: 100;
To learn more about the property types supported by Qt Quick, check out this link:
http://doc.qt.io/qt-5/qtqml-typesystem-basictypes.html
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset