I use a QLCDNumber and I changed the color of the background like this:

Qt Code:
  1. lCDNumber1 = new QLCDNumber(myobjectDialog);
  2. lCDNumber1->setGeometry(QRect(240, 810, 130, 40));
  3. lCDNumber1->setLineWidth(1);
  4. lCDNumber1->setSmallDecimalPoint(FALSE);
  5. lCDNumber1->setNumDigits(7);
  6. lCDNumber1->setSegmentStyle(QLCDNumber::Flat);
  7. lCDNumber1->setProperty("value", 0);
  8.  
  9. lcdpalette = new QPalette;
  10. lcdpalette->setColor(QPalette::Background, QColor(170, 255, 0));
  11. lcdpalette->setColor(QPalette::Base, QColor(170, 255, 0));
  12. lcdpalette->setColor(QPalette::AlternateBase, QColor(170, 255, 0));
  13. lCDNumber1->setPalette(*lcdpalette);
To copy to clipboard, switch view to plain text mode 

In Linux it works ok, but in Windows XP the backgroundcolor of the QLCDNumber
is lightgrey instead of green. I changed the style to Plastique with:

Qt Code:
  1. app.setStyle(new QPlastiqueStyle);
To copy to clipboard, switch view to plain text mode 

this changed the style to plastic in Windows XP but I still can not change the
backgroundcolor of QLCDNumber.

What do I need to do to get this working in Windows XP?

Regards, Teuniz