ToolButton QML Type
Import Statement: | import QtQuick.Controls |
Inherits: |
상세 설명
ToolButton은 Button 과 기능적으로 유사하지만 ToolBar 에 더 적합한 모양을 제공합니다.
ToolBar { RowLayout { anchors.fill: parent ToolButton { text: qsTr("‹") onClicked: stack.pop() } Label { text: "Title" elide: Label.ElideRight horizontalAlignment: Qt.AlignHCenter verticalAlignment: Qt.AlignVCenter Layout.fillWidth: true } ToolButton { text: qsTr("⋮") onClicked: menu.open() } } }
ToolButton은 AbstractButton 에서 API를 상속합니다. 예를 들어 text, 아이콘을 표시하고 AbstractButton API를 사용하여 clicks 에 반응하도록 설정할 수 있습니다.
ToolBar, ToolButton 사용자 지정하기 및 버튼 컨트롤도참조하세요 .
© 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.