DelegateChoice QML Type
デリゲートとそれを使用するタイミングをカプセル化します。詳細...
Import Statement: | import Qt.labs.qmlmodels |
プロパティ
詳細説明
DelegateChoice 型はデリゲートをラップし、それが選択されるべき状況を定義する。
DelegateChoices はDelegateChooser の内部に入れ子にすることができます。
DelegateChooserも参照してください 。
プロパティの説明
column : int |
このプロパティは、モデル要素の列値と一致させるために使用される値を保持します。
delegate : Component |
このプロパティは、この選択肢がモデル項目にマッチする場合に使用するデリゲートを保持します。
roleValue : variant |
このプロパティは、DelegateChooser::role によって提供される役割の役割データと一致するために使用される値を保持します。
row : int |
このプロパティは、モデル要素の行値と一致させるために使用される値を保持します。インデックス・プロパティのみを持つ(従って1つの列のみを持つ)モデルでは、このプロパティはインデックスとして意図され、目的のインデックス値に設定されるべきです。
注意: rowとindexの両方を設定すると、動作が未定義になります。この2つは同等であり、どちらか一方のみを使用すべきです。
indexも参照のこと 。
© 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.