views:

28

answers:

1

I created a simple form. I added a PushButton in the bottom right, and then a TabWidget above that. I highlighted the main window, and chose Grid Layout. The PushButton was stretched, so I added a spacer to the left of it.

Now, my Tab Widget only occupies the left most column. I want it to span into Column1 as well. I looked through every option and tried right-clicking anywhere, and can not get the designer to create the span.

Just to make sure I wasn't missing anything, I modified the .ui file directly, added colspan="2" to the tag for the Tab Widget, reloaded it with designer, and it is displaying perfectly. However, I want to use the designer as much as possible.

Any ideas how to get this to span?

A: 

Well... It's simple "drag operation". Just grab edge of your TabWidget closest to column you want span. And now just simply "stretch" TabWidget on empty column... It should now "span" on both columns

Kamil Klimek
There must be a bug on Tab Widget. it works for List Widget. Although Tab Widget displays the handle bar, when you drag it, it does nothing (it doesnt stretch).
esac
Didn't you set size hints for fixed/maximum ?
Kamil Klimek
Ok, I've checked with Qt 4.6.2. I can't stretch it too... You can fill up a bug report to http://bugreports.qt.nokia.com/
Kamil Klimek