I wouldl like to change the color of a label in the statusBar
statusLabelWarning
= new QLabel;
statusLabelWarning->setPixmap( warningPixmap);
statusLabelWarning = new QLabel;
statusLabelWarning->setPixmap( warningPixmap);
To copy to clipboard, switch view to plain text mode
warningPixmap is a member variable.
When I need to change the color
statusLabelWarning->setText(tr("Rad. stimata"));
warningPixmap.fill(Qt::red);
statusLabelWarning->setText(tr("Rad. stimata"));
warningPixmap.fill(Qt::red);
To copy to clipboard, switch view to plain text mode
but nothing happens.
I am missing something?
G
Bookmarks