The progressBar is green. No change at all.
The progressBar is green. No change at all.
Ok, which style and Qt version do you use, because the sample works well at my system?
I am programming on Windows XP and use Qt Creator 1.0.0 Based on Qt 4.5.0.
I did it. It works with suggestion from the following link: http://www.qtcentre.org/forum/f-qt-p...eet-20557.html
from this forum -> problem in QProgressBar setStyleSheet.
They do it by setting the style sheet, similar to this:
ui_lcd.progressBar->setStyleSheet("QProgressBar::chunk {background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, stop: 0 red, stop: 1 white); }");
ui_lcd.progressBar->update();
ui_lcd.progressBar->show();
that does what I needed...
thanks to everyone involved!
P.S. note what that post warns about -- have to set the style sheet in a *single* setStyleSheet() call...
Bookmarks