Hello everyone,

My problem is simple: my checked (not pressed) QPushButton background color (setted with stylesheet) is not displayed as wanted; it looks like a Qt::Dense6Pattern is present.
I tried to modify the stylesheet with different selectors, but no luck for now.

Below is the simplest code.

Qt Code:
  1. int main(int argc, char *argv[]){
  2. QApplication app(argc, argv);
  3. QPushButton b1("Button 1", &win);
  4.  
  5. b1.setCheckable(true);
  6. b1.setChecked(true);
  7. b1.setStyleSheet("QPushButton {background-color: blue;}");
  8.  
  9. win.show();
  10.  
  11. return app.exec();
  12. }
To copy to clipboard, switch view to plain text mode 


Does this issue ring a bell ?

Thanks !