StatusBarStyle QML Type

Provides custom styling for StatusBar. More...

Import Statement: import QtQuick.Controls.Styles 1.4
Since: Qt 5.2

Properties

Detailed Description

The status bar can be defined by overriding the background component and setting the content padding.

Example:

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"
            }
        }
    }
}

Property Documentation

background : Component

This defines the background of the status bar.


panel : Component

This defines the panel of the status bar.


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