a value with x and y attributes.
The
point
type refers to a value with
x
and
y
属性。
要创建
point
value, specify it as a "x,y" string:
CustomObject { myPointProperty: "0,20" }
或使用 Qt.point() 函数:
CustomObject { myPointProperty: Qt.point(0, 20) }
集成 C++ 时,注意任何
QPoint
or
QPointF
值
传入 QML 来自 C++
is automatically converted into a
point
value. When a
point
value is passed to C++, it is automatically converted into a
QPointF
值。
另请参阅 QML 基本类型 .