point QML Value Type
un valor con los atributos x e y. Más...
| Import Statement: | import QtQml |
Descripción detallada
El tipo « point » hace referencia a un valor con los atributos « x » y « y ».
Para crear un valor de tipo « point », especifícalo como una cadena «x,y»:
CustomObject { myPointProperty: "0,20" }O bien, utiliza la función Qt.point():
CustomObject { myPointProperty: Qt.point(0, 20) }Al integrar con C++, ten en cuenta que cualquier valor de tipo « QPoint » o « QPointF » pasado a QML desde C++ se convierte automáticamente en un valor de tipo « point ». Cuando se pasa un valor de tipo « point » a C++, se convierte automáticamente en un valor de tipo « QPointF ».
Las propiedades de tipo point son de tipo Qt.point(0, 0) por defecto.
Véase también Tipos de valor de 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.