I have a QDialog
I'm working with. It is made somewhat like a QMessageBox
. I noticed that the size of the QMessageBox
(and the size of its label) depends on the size of the message displayed.
How would I make the size of my QDialog
adjust automatically like a QMessageBox
? Presently my QDialog
contains a button box and a label, and the QDialog
is layout Vertical.
(I know I could just use the message box directly but eventually I will have more complex dialogs.)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…