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.