Re: How to shrink a dialog
Yes, it is possible to do so this way. When the dialog is empty, what is the size you want the dialog to be? (say w, h), use setMaximumSize(w, h) on the dialog, and then add your widgets to the dialog, the dialog grows, then when you hide the widget the dialog will shrink the size set by you. Remember to call adjustSize() on the dialog after setVisible(false) on the widget.
Re: How to shrink a dialog
[wiki]Expanding dialog[/wiki]
Re: How to shrink a dialog
Thank You,
Both solutions work perfectly!