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 )

This macro is deprecated since 6.8. We strongly advise against using it in new code.

使用 Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT 代替。

This macro can be used to define a Qt Quick class based on a Wayland extension. It defines a new class which inherits from className and which suffixes the name with "QuickExtension".

The macro works the same as Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS , but will also automatically register the new type as QmlType in the current QML module with QML_ADDED_IN_VERSION set to 1.0.