[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 -
Can you show us an image or code of what you have already?
-
-
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
-
You're welcome!
when you have finished it, could you change the title and add [Solved] please? -
[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 -
I should be punished severely for this!!! ;)
I altered your post too because we really cannot have this ;-P
-
You are right we really cannot have this :-D
Congrats you with Mad Scientist :-) -
Thanks Rokemoon,
It's not the best way of passing the line to the highest level on devnet with a Qt spell blunder.
-
You have helped so many people that it's excusable :-)
-
Thanks for your forgiveness and for the many solutions you donated. You've been quiet busy lately!