이 페이지에서

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

이 속성은 모델 요소의 행 값과 일치시키는 데 사용되는 값을 저장합니다. 인덱스 속성만 있는(따라서 열이 하나뿐인) 모델의 경우, 이 속성은 인덱스로 간주되어야 하며 원하는 인덱스 값으로 설정해야 합니다.

참고: row와 index를 모두설정하면 정의되지 않은 동작이 발생합니다. 이 두 속성은 동등하므로 하나만 사용해야 합니다.

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.