point QML Value Type
une valeur avec les attributs x et y. Plus d'informations...
Description détaillée
Le type point fait référence à une valeur avec des attributs x et y.
Pour créer une valeur point, spécifiez-la sous la forme d'une chaîne "x,y" :
CustomObject { myPointProperty: "0,20" }
Ou utilisez la fonction Qt.point() :
CustomObject { myPointProperty: Qt.point(0, 20) }
Lors de l'intégration avec C++, notez que toute valeur QPoint ou QPointF transmise à QML à partir de C++ est automatiquement convertie en valeur point. Lorsqu'une valeur point est transmise à C++, elle est automatiquement convertie en valeur QPointF.
Les propriétés de type point sont Qt.point(0, 0) par défaut.
Voir aussi Types de valeurs 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.