point QML Value Type
un valor con atributos x e y. Más...
Descripción detallada
El tipo point se refiere a un valor con atributos x y y.
Para crear un valor point, especifíquelo como una cadena "x,y":
CustomObject { myPointProperty: "0,20" }
O utilice la función Qt.point():
CustomObject { myPointProperty: Qt.point(0, 20) }
Al integrar con C++, tenga en cuenta que cualquier valor QPoint o QPointF pasado a QML desde C++ se convierte automáticamente en un valor point. Cuando se pasa un valor point a C++, se convierte automáticamente en un valor QPointF.
Las propiedades de tipo point son Qt.point(0, 0) por defecto.
Véase también Tipos de valor QML.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.