Obsolete Members for <QWaylandQuickExtension>
类<QWaylandQuickExtension> 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。
宏
(deprecated in 6.8) | Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS(className, QmlType) |
宏文档
[deprecated in 6.8]
Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS(className, QmlType)
自 6.8 版起,该宏已被弃用。我们强烈建议不要在新代码中使用它。
请使用Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT 。
该宏可用于定义基于 Wayland 扩展的Qt Quick 类。它定义了一个继承自className 的新类,并以 "QuickExtension "作为类名的后缀。
该宏的工作原理与Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS 相同,但也会在当前 QML 模块中自动将新类型注册为QmlType ,并将QML_ADDED_IN_VERSION 设置为 1.0。
© 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.