DelegateChoice QML Type
デリゲートとは何か、およびその使用場面について解説します。詳細...
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.9 |
プロパティ
詳細な説明
DelegateChoice 型は、デリゲートをラップし、それが選択されるべき条件を定義します。
DelegateChoice は、DelegateChooser 内にネストすることができます。
「DelegateChooser」も参照してください 。
プロパティのドキュメント
column : int
このプロパティには、モデル要素の列値と照合するために使用される値が格納されます。
delegate : Component
このプロパティには、この選択がモデル項目と一致した場合に使用するデリゲートが格納されます。
index : int
このプロパティには、モデル要素のインデックス値と照合するために使用される値が格納されます。これは実質的に、row の別名です。
「row」も参照してください 。
roleValue : variant
このプロパティには、DelegateChooser::role によって提供されるロールのロールデータと照合するために使用される値が格納されます。
row : int
このプロパティには、モデル要素の行値と照合するために使用される値が格納されます。index プロパティのみを持つ(つまり、列が 1 つしかない)モデルの場合、このプロパティはインデックスとして扱われ、目的のインデックス値に設定する必要があります。
注: row プロパティと index プロパティの両方を設定すると 、未定義の挙動となります。これら2つは同等であるため、どちらか一方のみを使用してください。
関連項目: index 。
© 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.