point QML Value Type

x属性とy属性を持つ値。詳細...

詳細説明

point 型は、xy 属性を持つ値を指します。

point 型の値を作成するには、"x,y" 文字列として指定します:

CustomObject { myPointProperty: "0,20" }

または、Qt.point ()関数を使用します:

CustomObject { myPointProperty: Qt.point(0, 20) }

C++と統合する場合、C++からQMLに渡される QPoint またはQPointF の値は自動的にpoint の値に変換されることに注意してください。C++にpoint の値が渡された場合、自動的にQPointF の値に変換されます。

point 型のプロパティはデフォルトでQt.point(0, 0) になります。

関連項目: QMLの値の型

© 2025 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.