[Qt-interest] resize Dialog to minimum height
Matthias Pospiech
matthias.pospiech at gmx.de
Tue Apr 28 09:16:53 CEST 2009
I have a dialog with a tabwidget which can be enabled or disabled (hidden)
If the tabwidget is hidden the dialog must not take the whole space it
had with the tabwidget.
It should rather be resized to minimum height. this however did not
work. I tried the following:
if (state == Qt::Checked)
tabWidget_FullOptions->setHidden(false);
else {
tabWidget_FullOptions->setHidden(true);
this->resize(this->sizeHint().width(),
this->minimumSizeHint().height());
}
However the resize does not happen, or has no effect.
So how do I resize a Dialog to its minimum height?
Matthias
More information about the Qt-interest-old
mailing list