PDA

View Full Version : Qt Designer Layout and stretch factor



folibis
26th April 2012, 04:58
I'm trying to create a simple window with layouts in Qt Designer
that's what I would like to get
7632
*.ui file in attacment

2 widgets aligned vertically with QSplitter
top widget is 2 QWidgets aligned with QSplitter and bottom widget is QTabWidget
top widget have stretch factor 10 and bottom one have stretch factor 1


and this is what I really get
7630


what I do wrong?
why stretch factor is not taken into account and how to arrange the widgets so that the bottom one occupied the smaller part of the form?

viulskiez
26th April 2012, 10:10
Try this. Change splitter stretch factor to 1, and tabWidget stretch factor to 0, then set the minimum size of one of the tab in your tab widget (changing the minimum size of tabWidget will not ) to adjust the tab size.
I now this is not the answer, but hope this helps a little.

folibis
26th April 2012, 22:53
Yes, it works. Not as expected, but works. Thanks viulskiez!