DelegateChoice QML Type

대리인 및 사용 시기를 캡슐화합니다. 자세히...

Import Statement: import Qt.labs.qmlmodels

속성

상세 설명

DelegateChoice 유형은 델리게이트를 감싸고 델리게이트가 선택되어야 하는 상황을 정의합니다.

DelegateChoices는 DelegateChooser 안에 중첩될 수 있습니다.

DelegateChooser참조하세요 .

속성 문서

column : int

이 속성은 모델 요소의 열 값과 일치하는 데 사용되는 값을 보유합니다.


delegate : Component

이 속성은 선택 항목이 모델 항목과 일치하는 경우 사용할 델리게이트를 보유합니다.


index : int

이 속성은 모델 요소의 인덱스 값을 일치시키는 데 사용되는 값을 보유합니다. 이는 사실상 row 의 별칭입니다.

row도 참조하세요 .


roleValue : variant

이 속성은 DelegateChooser::role 에서 제공한 역할의 역할 데이터와 일치시키는 데 사용되는 값을 보유합니다.


row : int

이 속성은 모델 요소의 행 값을 일치시키는 데 사용되는 값을 보유합니다. 인덱스 속성만 있는 모델(따라서 열이 하나만 있는 모델)의 경우 이 속성을 인덱스로 지정하고 원하는 인덱스 값으로 설정해야 합니다.

참고: 행과 인덱스를 모두 설정하면 정의되지 않은 동작이 발생합니다. 이 둘은 동등하므로 하나만 사용해야 합니다.

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.