このページでは

DelegateChoice QML Type

デリゲートとそれを使用するタイミングをカプセル化します。詳細...

Import Statement: import QtQml.Models
Since: Qt 6.9

プロパティ

詳細説明

DelegateChoice 型はデリゲートをラップし、それが選択されるべき状況を定義する。

DelegateChoices は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.