[solved]Change height of Window with tab
-
Hellow, i have 2 tab, min height of first: 100, min height of second: 20, but because min height = 100, then min height of windows = 100 too, how can i set height of window 20 when second tab is active
Advance thank for your help -
-
This do Safari in it's settings
-
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
-
Thank you for your help
-
[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 -
You are right we really cannot have this :-D
Congrats you with Mad Scientist :-) -
You have helped so many people that it's excusable :-)