hi
i want to change color of push button .

the does this in linux but in windows it does not work .
Qt Code:
  1. #include <QtGui>
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. QApplication a(argc, argv);
  6.  
  7. b.show();
  8.  
  9. QPalette palette;
  10. QBrush brushg(QColor(0, 255, 0, 255));//green
  11. palette.setBrush(QPalette::Active, QPalette::Button, brushg);
  12. b.setPalette(palette);
  13.  
  14. return a.exec();
  15. }
To copy to clipboard, switch view to plain text mode 

the above program displays a pushbutton in green color in linux, but the same program after compiling in windows and running the color of pushbutton is not green in color.

the same is with the designer. i can change the color of pushbutton using designer in linux but in windows it does not work.