Тип ToolButton QML
Предоставляет тип кнопки, обычно используемый в панели инструментов. Подробнее...
| Заявление об импорте: | import QtQuick.Controls 1.4 |
| С: | Qt 5.1 |
| Наследует: |
Подробное описание
ToolButton функционально аналогичен кнопке, но может обеспечить внешний вид, более подходящий для использования в панели инструментов.
ApplicationWindow {
...
toolBar: ToolBar {
RowLayout {
ToolButton {
iconSource: "new.png"
}
ToolButton {
iconSource: "open.png"
}
ToolButton {
iconSource: "save-as.png"
}
Item { Layout.fillWidth: true }
CheckBox {
text: "Enabled"
checked: true
}
}
}
} Вы можете создать пользовательский внешний вид для ToolButton, назначив стиль кнопки.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qml-qtquick-controls-toolbutton.html