Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QtQuickControls ProgressBarStyle change easily color

$
0
0
Hi together, I am just trying to change in an easy and beautiful way the color of a ProgressBar. By the following Code I get the defalt Progress which is quiet beautiful, just the color of the “blue #49d” I would like to change to red: ProgressBar {     value: 0.5     style: ProgressBarStyle {         id: mystyle         //progress: ...     } } The only solution I figured out, was to completely rewrite the progress property in ProgressBarStyle a la: progress: Rectangle {     color: "red"     ... } But then I would have to rewrite everything; Gradients, Borders, etc. A solution like: progress.progressColor: "red" would be perfect, as the ProgressBarStyles.qml states it(Line 97/98) ProgressBarStyles.qml [qt.gitorious.org] Here the snippet: .... property Component progress: Rectangle {         property color progressColor: "#49d"         .... But cascaded acess to this property is unfortunately not possible. Does anyone has an idea how to just change the color of the progressBar without completely rewriting it? Thanks a lot SweetyGott

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images