이 페이지에서

ToolButton QML Type

ToolBar 에 어울리는 디자인의 버튼. 더 보기...

Import Statement: import QtQuick.Controls
Inherits:

Button

상세 설명

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를 상속받습니다. 예를 들어, AbstractButton API를 사용하여 text 을 설정하고, 아이콘을 표시하며, clicks 에 반응할 수 있습니다.

ToolBar, ToolButton 사용자 지정 및 Button 컨트롤항목도 참조하십시오 .

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