以下成員源於類 QQmlListReference 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(since 6.1, deprecated)
|
QQmlListReference (const QVariant & variant , QQmlEngine * engine ) |
(棄用)
|
QQmlListReference (QObject * object , const char * property , QQmlEngine * engine ) |
[since 6.1, deprecated]
QQmlListReference::
QQmlListReference
(const
QVariant
&
variant
,
QQmlEngine
*
engine
)
This function is deprecated. We strongly advise against using it in new code.
Use the constructors without QQmlEngine argument instead.
Constructs a QQmlListReference from a QVariant variant 包含 QQmlListProperty 。若 variant does not contain a list property, an invalid QQmlListReference is created. If the object owning the list property is destroyed after the reference is constructed, it will automatically become invalid. That is, it is safe to hold QQmlListReference instances even after the object is deleted.
The engine is unused.
該函數在 Qt 6.1 引入。
[deprecated]
QQmlListReference::
QQmlListReference
(
QObject
*
object
, const
char
*
property
,
QQmlEngine
*
engine
)
This function is deprecated. We strongly advise against using it in new code.
Use the constructors without QQmlEngine argument instead.
Constructs a QQmlListReference for object 's property 。若 property is not a list property, an invalid QQmlListReference is created. If object is destroyed after the reference is constructed, it will automatically become invalid. That is, it is safe to hold QQmlListReference instances even after object 被刪除。
The engine is unused.