PDA

View Full Version : expanding/shrinking issues.



Preeteesh
16th June 2007, 21:05
Hi, How can i have my controls automatecally resized. I am having a Tab Control inside Grid layout and Inside tab control Some TreeWidget inside Horizontal Layout.

How can i have them expanding/shrinking automatecally.

If possible please provide some code.

Thanks.

marcel
16th June 2007, 21:13
Could we see what code you have so far? Or maybe the UI file?

Regards

Preeteesh
16th June 2007, 21:32
Hi,

I am attaching the ui file. Please let me know.

Thanks.

marcel
16th June 2007, 21:50
You didn't have any layout set in the tab widget pages.
I set them both to have a vertical layout.
Take a look.

Regards

Preeteesh
16th June 2007, 22:14
Hi,

I started getting error while i compiled it on my end. Following are few of them

'setVerticalSpacing' : is not a member of 'QGridLayout'

'setBottomMargin' : is not a member of 'QHBoxLayout'

I replaced my ui file with yours, am i doing something wrong?

Thanks.

marcel
16th June 2007, 22:27
Sorry, I saved that with 4.3.
Here's one saved with 4.2.2.

Anyway, you don't really need to use mine. Just open your UI, right click on each of the tabs, select Layout and then Lay out vertically.

Regards