ProgressBar QML Type
Indicates the progress of an operation. More...
Import Statement: | import QtQuick.Controls 2.0 |
Since: | Qt 5.7 |
Inherits: |
Properties
- from : real
- indeterminate : bool
- position : real
- to : real
- value : real
- visualPosition : real
Detailed Description
ProgressBar indicates the progress of an operation. The value should be updated regularly. The range is defined by from and to, which both can contain any value.
A progress bar in its normal state. | |
A progress bar that is disabled. |
ProgressBar {
value: 0.5
}
See also Customizing ProgressBar and BusyIndicator.
Property Documentation
This property holds whether the progress bar is in indeterminate mode. A progress bar in indeterminate mode displays that an operation is in progress, but it doesn't show how much progress has been made.
See below for an example:
This property holds the logical position of the progress.
The position is defined as a percentage of the value, scaled to 0.0 - 1.0
. For visualizing the progress, the right-to-left aware visualPosition should be used instead.
See also value and visualPosition.
This property holds the visual position of the progress.
The position is defined as a percentage of the value, scaled to 0.0 - 1.0
. When the control is mirrored, visuaPosition
is equal to 1.0 - position
. This makes visualPosition
suitable for visualizing the progress, taking right-to-left support into account.