Why QMessageBox not taking background-color set in stylesheet for all QPushButtons?
Unsolved
General and Desktop
-
In my application, I am using qss to do the styling of all UI components. Style changes of QPushButtons are reflected everywhere except in QMessageBox, which is getting created statically as and when needed as per the action. Text color change is reflected. Then why not background color? The button is Standard Button, OK button.
-
@tejusoor
where do you set/apply your stylesheet?
Is your QMessageBox a child of any widget? Because this is required for proper style inheritance.
Unless you've set the stylesheet on the QApplication instance, which applies it to all top level windows.