ProgressBar
{
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 90
height: 4
width: parent.width - 34
indeterminate: false
value: 50
orientation: Qt.Horizontal
maximumValue : 0
minimumValue : 100
style: ProgressBarStyle {
background: Rectangle {
radius: 2
color: "#CCCACA"
implicitWidth: 4
implicitHeight: 4
}
progress: Rectangle {
radius: 2
color: "#5F5F5F"
}
}
}
Tenga en cuenta que necesita importar QtQuick.Controls 1.4
importar QtQuick.Controls.Styles 1.4