Obsolete Members for QQmlListReference
クラスQQmlListReference の以下のメンバは非推奨である。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
パブリック関数
(since 6.1, deprecated) | QQmlListReference(const QVariant &variant, QQmlEngine *engine) |
(deprecated) | QQmlListReference(QObject *object, const char *property, QQmlEngine *engine) |
メンバ関数ドキュメント
[since 6.1, deprecated]
QQmlListReference::QQmlListReference(const QVariant &variant, QQmlEngine *engine)
この関数は非推奨である。新しいコードでは使用しないことを強くお勧めします。
代わりに、QQmlEngine 引数なしのコンストラクタを使用してください。
QQmlListProperty を含むQVariant variant から QQmlListReference を構築します。variant にリストプロパティが含まれていない場合、無効な QQmlListReference が生成されます。リスト・プロパティを所有するオブジェクトが、参照が構築された後に破壊された場合、それは自動的に無効になります。つまり、オブジェクトが削除された後でもQQmlListReferenceインスタンスを保持することは安全です。
engine は未使用です。
この関数は Qt 6.1 で導入されました。
[deprecated]
QQmlListReference::QQmlListReference(QObject *object, const char *property, QQmlEngine *engine)
この関数は非推奨である。新しいコードでは使用しないことを強くお勧めします。
代わりにQQmlEngine 引数なしのコンストラクタを使用してください。
object のproperty に対する QQmlListReference を構築します。property がリストプロパティでない場合、無効な QQmlListReference が作成されます。参照が構築された後にobject が破棄されると、自動的に無効となります。つまり、object が削除された後でも QQmlListReference のインスタンスを保持することは安全です。
engine は未使用。
© 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.