QML 名前空間

QML名前空間は列挙のみを公開する特殊な型であり、インスタンス化することはできません。名前空間は C++ でのみ宣言することができ、Q_NAMESPACE でマークされた C++ 名前空間の内部でQML_ELEMENT またはQML_NAMED_ELEMENT マクロを用いて宣言します。

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.