Hi, I have a problem with stylesheets when applied to QLabels. The background-attribute is simply ignored. But when I swiftly resize the widget with the mousecurser, I can see traces of its background-color at the edge of the Window.

Thanx in advance
momesana

Qt Code:
  1. #include<QApplication>
  2. #include <QtGui>
  3.  
  4. int main( int argc, char ** argv)
  5. {
  6. QApplication app( argc, argv);
  7. QLabel * label = new QLabel(mw);
  8. label->setText("Where is my color??? :'(");
  9. label->setStyleSheet( "background-color:yellow; text-align:center; color:blue;" );
  10. mw->setCentralWidget(label);
  11. mw->show();
  12. return app.exec();
  13. }
To copy to clipboard, switch view to plain text mode