point QML Value Type
um valor com os atributos x e y. Mais...
| Import Statement: | import QtQml |
Descrição detalhada
O tipo ` point ` refere-se a um valor com os atributos ` x ` e ` y `.
Para criar um valor ` point `, especifique-o como uma string “x,y”:
CustomObject { myPointProperty: "0,20" }Ou use a função Qt.point():
CustomObject { myPointProperty: Qt.point(0, 20) }Ao integrar com C++, observe que qualquer valor do tipo ` QPoint ` ou ` QPointF ` passado do C++ para o QML é automaticamente convertido em um valor do tipo ` point `. Quando um valor do tipo ` point ` é passado para o C++, ele é automaticamente convertido em um valor do tipo ` QPointF `.
Propriedades do tipo point são, por padrão, do tipo Qt.point(0, 0).
Veja também Tipos de valor do 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.