This question is about the very same problem described in Resize QDialog at a runtime, but the answer there does not fit my needs.
layout()->setSizeConstraint(QLayout::SetFixedSize);
does the trick that the QDialog resizes itself if it's content is changed. But the possibility to resize the dialog manually is lost doing so.
Is there a way to resize a QDialog programatically after some content has been hidden other than setting the main layout's size constraint to QLayout::SetFixedSize
? I tried all kind of code, including saving the geometry before showing the additional widgets and re-setting this very geometry after hiding them, but no matter what I do, nothing happens.
Thanks for all help!