QProgress bar ith multiple colors.
-
Hello all, I have been working on the QProgress bar for quite some time. I have a timer and the timer's value (in sec) is updated to the progress bar. The progress bar literally works like how a progress bar work when you are copying a file to an another location. Here in this progress bar, I want to add multiple colors. For example, 0 to 30 can be blue, 31 to 50 can be red, 51 to 70 can be green and 71 to 100 can be yellow. How to achieve this in QT? Refer the following image for the reference. I want something like this.
Thanks in Advance.
-
Hello all, I have been working on the QProgress bar for quite some time. I have a timer and the timer's value (in sec) is updated to the progress bar. The progress bar literally works like how a progress bar work when you are copying a file to an another location. Here in this progress bar, I want to add multiple colors. For example, 0 to 30 can be blue, 31 to 50 can be red, 51 to 70 can be green and 71 to 100 can be yellow. How to achieve this in QT? Refer the following image for the reference. I want something like this.
Thanks in Advance.
@lakshmanGiri
To do multiple colors I think you should read https://stackoverflow.com/questions/31180857/progress-bar-colors
I do not know if there are other/better answers, but it's a start.