ProgressBar styling
-
I'm trying to change the look of a progressbar, but i only manage to change the background with this:
ProgressBar { //... background: Rectangle { radius: 2 color: "gray" implicitWidth: 200 implicitHeight: 18 } }According to this site i should be able to change the progressbar itself using this:
progress: Rectangle { color: "lightsteelblue" border.color: "steelblue" }But that does not work. How do i change the style of the progressbar?
-
I'm trying to change the look of a progressbar, but i only manage to change the background with this:
ProgressBar { //... background: Rectangle { radius: 2 color: "gray" implicitWidth: 200 implicitHeight: 18 } }According to this site i should be able to change the progressbar itself using this:
progress: Rectangle { color: "lightsteelblue" border.color: "steelblue" }But that does not work. How do i change the style of the progressbar?
@Thunderstruck
i guess you are mixing up QtQuickControls and QtQuickControls2?The link you've posted actually requires a ProgressBarStyle element.
For QtQuickControls2 see this
-
That seems to be the case. Thank you!