PDA

View Full Version : Qt Designer Size of table widget inside Tab Widget is not flexible.



akash
13th September 2011, 10:33
Hi,

Scenario: In QT designer, I have DockWidget->TabWidget->TableWidget.
Size of tabwidget changes automatically if we change the position and size of dockwidget.
But size of tablewidget is not changing as well as there are no scroll bars coming to view the data in table widget.

Could you please suggest us what to do to get the scrollbars for tablewidget contents. if we change the size of dockwidget.

is there any additional layout/widget need to be added?

Thanks,
Akash

ChrisW67
14th September 2011, 07:46
Apply a layout to each tab of the tab widget.

akash
14th September 2011, 11:45
Hi,

I tried placing vertical/horizontal layout in each tab and then placing tablewidget or other widgets inside the layout, but as soon as the size of a main window increases, size of tabwidget increases but layout's and widget inside it's size remains the same as placed during design.

Could you please suggest some other solution, as this is not working for me. Or may be i m doing something wrong. Please let me know if there are properties that need to be changed for this.

Thanks,
Akash