RadioButton QML Type

켜거나 끌 수 있는 전용 라디오 버튼입니다. 더 보기...

Import Statement: import QtQuick.Controls
Inherits:

AbstractButton

상세 설명

라디오 버튼은 켜거나(체크) 끌 수 있는 옵션 버튼을 표시합니다(체크 해제). 라디오 버튼은 일반적으로 옵션 세트에서 하나의 옵션을 선택하는 데 사용됩니다.

RadioButton은 AbstractButton 에서 API를 상속받습니다. 예를 들어 text 를 설정하고 AbstractButton API를 사용하여 clicks 에 반응할 수 있습니다. 라디오 버튼의 상태는 checked 속성으로 설정할 수 있습니다.

라디오 버튼은 기본적으로 auto-exclusive 입니다. 동일한 상위 항목에 속하는 라디오 버튼 중 한 번에 하나의 버튼만 체크할 수 있으며, 다른 버튼을 체크하면 이전에 체크한 버튼의 체크가 자동으로 해제됩니다. 공통 부모를 공유하지 않는 라디오 버튼의 경우 ButtonGroup 을 사용하여 독점성을 관리할 수 있습니다.

RadioDelegate 는 일반적으로 보기에서 사용된다는 점을 제외하면 RadioButton과 유사합니다.

ColumnLayout {
    RadioButton {
        checked: true
        text: qsTr("First")
    }
    RadioButton {
        text: qsTr("Second")
    }
    RadioButton {
        text: qsTr("Third")
    }
}

ButtonGroup, 라디오 버튼 사용자 지정하기, 버튼 컨트롤RadioDelegate참조하세요 .

© 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.