QMessagebox style
Solved
General and Desktop
-
Hi,
I used QMessageBox in my application, but appears differently depending on OS.
For example, here using Linux:
And here using Windows:
In particular I would like to have the buttons centered in both cases, is it possible or I have to create my own class with QDialog and style it as I want?
I try to use margin (and others) property in stylesheet but with linux it isn't work. -
You have to use your own QWidget/QDialog - QMessageBox is trying to use the native style guides (which also defines the order of the buttons).
-
@Christian-Ehrlicher 34/5000
Thanks for your reply!