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.