Button QML Type
명령을 수행하거나 질문에 답하기 위해 클릭할 수 있는 푸시 버튼입니다. 더 보기...
Import Statement: | import QtQuick.Controls |
Inherits: | |
Inherited By: |
속성
- flat : bool
- highlighted : bool
상세 설명
버튼은 사용자가 누르거나 클릭할 수 있는 푸시 버튼 컨트롤을 제공합니다. 버튼은 일반적으로 작업을 수행하거나 질문에 답하는 데 사용됩니다. 일반적인 버튼은 확인, 적용, 취소, 닫기, 예, 아니요, 도움말입니다.
버튼은 AbstractButton 에서 API를 상속받습니다. 예를 들어 text 를 설정하여 아이콘을 표시하고 AbstractButton API를 사용하여 clicks 에 반응할 수 있습니다.
버튼은 사용자가 활성화하면 clicked() 신호를 방출합니다. 이 신호에 연결하여 버튼의 동작을 수행합니다. 버튼은 길게 누를 경우 canceled(), doubleClicked(), pressed(), released() 및 pressAndHold() 신호도 제공합니다.
버튼의 신호에 연결하는 방법은 아래 스니펫을 참조하세요.
RowLayout { Button { text: "Ok" onClicked: model.submit() } Button { text: "Cancel" onClicked: model.revert() } }
속성 문서
flat : bool |
이 속성은 버튼이 평평한지 여부를 보유합니다.
플랫 버튼은 일반적으로 누르거나 선택하지 않는 한 배경을 그리지 않습니다.
기본값은 false
입니다.
highlighted : bool |
이 속성은 버튼이 강조 표시되는지 여부를 나타냅니다.
버튼은 사용자의 주의를 끌기 위해 강조 표시할 수 있습니다. 키보드 상호 작용에는 영향을 주지 않습니다.
기본값은 false
입니다.
© 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.