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 自身は、それらを参照する QQmlListProperty を保持している限り、提供され、生かされていなければなりません。
このコンストラクタは、count()、at()、clear()、append()を使用して、Qt 5.15で導入されたremoveLast()とreplace()メソッドを合成します。これは遅いです。リストをクリアする以上の操作を行う場合は、これらのメソッドを明示的に提供する必要があります。
© 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.