point QML Value Type
x および y 属性を持つ値。詳細...
| Import Statement: | import QtQml |
詳細な説明
point 型は、x およびy 属性を持つ値を指します。
point 値を作成するには、それを「x,y」という形式の文字列として指定します:
CustomObject { myPointProperty: "0,20" }または、Qt.point() 関数を使用します:
CustomObject { myPointProperty: Qt.point(0, 20) }C++ と統合する場合、C++ から QML に渡される QPoint またはQPointF の値は、自動的にpoint の値に変換されることに注意してください。point の値が C++ に渡されると、自動的にQPointF の値に変換されます。
point 型のプロパティは、デフォルトでQt.point(0, 0) です。
「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.