C

rect QML Basic Type

a value with x, y, width and height attributes. More...

The rect type refers to a value with x, y, width and height attributes.

To create a rect value, use the Qt.rect() function:

Item {
    property rect myRectProperty: Qt.rect(50, 50, 100, 100)
}

The rect type also exposes read-only left, right, top and bottom attributes. These are the same as their C++ counterparts.

Available under certain Qt licenses.
Find out more.