How to change fore-ground color of progress-bar
-
How can we change chunk color (fore-ground color) of QProgressBar using somewhat similar syntax as shown below:
@ui->progressBar->setStyle(new QPlastiqueStyle);
ui->progressBar->setStyleSheet("background-color: white");@ -
"Customizing QProgressBar":http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qprogressbar
-
I don't want to use this sort of syntax:
@QProgressBar::chunk {
background-color: #05B8CC;
width: 20px;
}@Where to use this piece of code by the way? in constructor where?
By the way can't we use a syntax of this type:
@ui->progressBar->setStyleSheet("background-color: white");@ -
You should start reading right "here":http://qt-project.org/doc/qt-4.8/stylesheet.html.
-
Thanks! perhaps I needed this.