[solved]Change height of Window with tab
-
-
I tried it out with :
@connect(ui->tabWidget, SIGNAL(currentChanged(int)), this, SLOT(Min()));@and in the slot Min() i used
@layout()->setSizeConstraint(QLayout::SetFixedSize);@but in that case the dialog minimizes it's size to the tabwidget with the largest sizehint. So that's not the solution.
I guess you will have to do it yourself using a dynamic dialog using 2 buttons on top and adding/removing layouts like in the "Shape-Changing Dialogs" chapter from "the official -QT- Qt book.":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip
-
[quote author="Eddy" date="1313047146"]
"the official -QT- Qt book.":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip[/quote]
Eddy you did this -QT- Qt:-D