Try this on your machine:
#include <QtGui>
int main(int argc, char *argv[])
{
bar.setValue(50);
bar.setPalette(pal);
bar.show();
return a.exec();
}
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QProgressBar bar;
bar.setValue(50);
QPalette pal = bar.palette();
pal.setColor(QPalette::Highlight, QColor("yellow"));
bar.setPalette(pal);
bar.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
If it is yellow you probably set a style sheet in ui->progressBar. Because then the palette quit to work.
Bookmarks