Obsolete Members for QQmlListProperty

QQmlListProperty クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。

パブリック関数

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

メンバー関数のドキュメント

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

この関数は非推奨です。新しいコードでの使用は強く推奨しません。

既存のQList list からQQmlListPropertyの値を作成するための便利なコンストラクタです。リストを所有するobject とlist 自体は、それらを参照するQQmlListPropertyを保持している限り、必ず提供され、存続していなければなりません。

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

© 2026 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.