Obsolete Members for QQmlListProperty

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

公共函数

(弃用) QQmlListProperty (QObject * object , QList<T *> & list )

成员函数文档编制

[default] QQmlListProperty:: QQmlListProperty ( QObject * object , QList < T *> & list )

This function is deprecated. We strongly advise against using it in new code.

Convenience constructor for making a QQmlListProperty value from an existing QList listlist reference must remain valid for as long as object exists. object must be provided.

This constructor synthesizes the removeLast() and replace() methods introduced in Qt 5.15, using count(), at(), clear(), and append(). This is slow. If you intend to manipulate the list beyond clearing it, you should explicitly provide these methods.