Qt Reference Documentation

QML StatusBar Element

Decorates an application with system information. More...

This element was introduced in Qt Quick Components 1.0.

Properties

Detailed Description

The StatusBar shows important information of the device state such as network type, signal strength, and battery level.

Usually the StatusBar is anchored on top of the Window component. The height of the bar is pre-set and there is no need for the application to override it. The height might also change when on the device orientation changes.

Because the StatusBar information is important to the user, it is recommended to add a StatusBar instance to every application. If the application needs to expand the contents area over the StatusBar, the bar can be hidden temporarily and shown again when possible. You should not instantiate the StatusBar inside the Page component because the page transition effect would also apply to the StatusBar.

Anchoring the StatusBar

The code snippet below illustrates how to anchor the StatusBar on the top of the Window component.

 Window {
     StatusBar {
         id: statusbar
         anchors.top: parent.top
     }

     Item {
         id: content
         anchors { top: statusbar.bottom; left: parent.left; right: parent.right; bottom: parent.bottom }
     }
 }

Property Documentation

platformInverted : bool

Symbian:

If platformInverted is true, the component is visualized with the inverted style. For more information, see Using Inverted Style with Symbian Components. By default platformInverted is false.

This property group was introduced in Qt Quick Components 1.1.