Carlos, I tried what you suggested in a class that is derived from QProgressBar. This is my code:
Qt Code:
  1. void MyProgressBar::onStarted()
  2. {
  3. setFormat(tr("Preparing"));
  4.  
  5. QPalette p = this->palette();
  6. QBrush greenBrush(QColor(0, 255, 0, 255));
  7. greenBrush.setStyle(Qt::SolidPattern);
  8. p.setBrush(QPalette::Active, QPalette::Highlight, greenBrush);
  9. p.setBrush(QPalette::Inactive, QPalette::Highlight, greenBrush);
  10. this->setPalette(p);
  11. }
To copy to clipboard, switch view to plain text mode 
But the color doesn't change. Maybe you can spot my mistake?