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());
}
if (state == Qt::Checked)
tabWidget_FullOptions->setHidden(false);
else {
tabWidget_FullOptions->setHidden(true);
this->resize(this->sizeHint().width(),
this->minimumSizeHint().height());
}
To copy to clipboard, switch view to plain text mode
However the resize does not happen, or has no effect.
So how do I resize a Dialog to its minimum height?
Matthias
Bookmarks