Тип QML StatusBarStyle
Предоставляет настраиваемый стиль для StatusBar. Подробнее...
| Заявление об импорте: | import QtQuick.Controls.Styles 1.4 |
| С момента: | Qt 5.2 |
Свойства
- background : Компонент
- panel : Компонент
Подробное описание
Полосу состояния можно определить, переопределяя компонент фона и задавая отступы содержимого.
Пример:
StatusBar {
style: StatusBarStyle {
padding {
left: 8
right: 8
top: 3
bottom: 3
}
background: Rectangle {
implicitHeight: 16
implicitWidth: 200
gradient: Gradient{
GradientStop{color: "#eee" ; position: 0}
GradientStop{color: "#ccc" ; position: 1}
}
Rectangle {
anchors.top: parent.top
width: parent.width
height: 1
color: "#999"
}
}
}
} Документация по свойствам
background : Component
Это определяет фон полосы состояния.
panel : Component
Это определяет панель полосы состояния.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.14/qml-qtquick-controls-styles-statusbarstyle.html