Obsolete Members for QQmlListProperty

クラスQQmlListProperty の以下のメンバは非推奨である。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

パブリック関数

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

メンバ関数ドキュメント

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

この関数は非推奨である。新しいコードで使用しないことを強くお勧めします。

既存のQList list から QQmlListProperty の値を作るための便利なコンストラクタです。object が存在する限り、list の参照は有効でなければなりません。object を指定する必要があります。

このコンストラクタは Qt 5.15 で導入された removeLast() と replace() メソッドを count()、at()、clear()、append() を使って合成します。これは遅いです。リストをクリアする以上の操作を行う場合は、これらのメソッドを明示的に提供する必要があります。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.