ProgressBarStyle

Provides custom styling for ProgressBar More...

Import Statement: import QtQuick.Controls.Styles 1.1
Since: Qt 5.1

Properties

Detailed Description

Example:

ProgressBar {
    value: slider.value
    style: ProgressBarStyle {
        background: Rectangle {
            radius: 2
            color: "lightgray"
            border.color: "gray"
            border.width: 1
            implicitWidth: 200
            implicitHeight: 24
        }
        progress: Rectangle {
            color: "lightsteelblue"
            border.color: "steelblue"
        }
    }
}

Property Documentation

background : Component

The background component for this style.

Note: The implicitWidth and implicitHeight of the background component must be set.


read-onlycontrol : ProgressBar

The ProgressBar attached to this style.


read-onlycurrentProgress : real

A value in the range [0-1] indicating the current progress.


panel : Component

The panel component for this style.


progress : Component

The progress component for this style.