Hello, i created a QMessageBox in this way:
can't i set a default size for height and weidth?Qt Code:
To copy to clipboard, switch view to plain text mode
thx
Hello, i created a QMessageBox in this way:
can't i set a default size for height and weidth?Qt Code:
To copy to clipboard, switch view to plain text mode
thx
I don't think you can, when using the convenience static methods.
You can create a QMessageBox on the stack for example, and resize it before you you call exec().
But it is just as much (or little) work to subclass and add that functionality too...
Your choice.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
The question is, what do you need it for?
Bookmarks