Obsolete Members for <qqmlintegration.h>

以下成员源于类 <qqmlintegration.h> 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

(deprecated in 6.7) QML_ADDED_IN_MINOR_VERSION ( VERSION )
(deprecated in 6.7) QML_REMOVED_IN_MINOR_VERSION ( VERSION )

宏文档编制

[deprecated in 6.7] QML_ADDED_IN_MINOR_VERSION ( VERSION )

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

使用 QML_ADDED_IN_VERSION and specify the full version

Declares that the enclosing type or namespace was added in the specified minor VERSION , relative to the module major version. The minor version is assumed to be in line with any revisions given by Q_REVISION () macros on methods, slots, or signals, and any REVISION() attributes on properties declared with Q_PROPERTY ().

QML_ADDED_IN_MINOR_VERSION() only takes effect if the type or namespace is available in QML, by having a QML_ELEMENT , QML_NAMED_ELEMENT (), QML_ANONYMOUS ,或 QML_INTERFACE 宏。

If the QML module the type belongs to is imported with a lower version than the one determined this way, the QML type is invisible.

另请参阅 QML_ADDED_IN_VERSION , QML_ELEMENT ,和 QML_NAMED_ELEMENT .

[deprecated in 6.7] QML_REMOVED_IN_MINOR_VERSION ( VERSION )

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

使用 QML_REMOVED_IN_VERSION and specify the full version

Declares that the enclosing type or namespace was removed in the specified minor VERSION , relative to the module major version. This is primarily useful when replacing the implementation of a QML type. If a corresponding QML_ADDED_IN_VERSION () is present on a different type or namespace of the same QML name, then the removed type is used when importing versions of the module lower than VERSION , and the added type is used when importing versions of the module greater or equal VERSION .

QML_REMOVED_IN_MINOR_VERSION() only takes effect if type or namespace is available in QML, by having a QML_ELEMENT , QML_NAMED_ELEMENT (), QML_ANONYMOUS ,或 QML_INTERFACE 宏。

另请参阅 QML_REMOVED_IN_VERSION , QML_ELEMENT ,和 QML_NAMED_ELEMENT .