0

Why does the widgets inside a QTabWidget don't resize?

All my widgets resize except for the ones inside the tabs, even the tabs resize, but not the items inside it.

Is this because of the type of layout as I show in the figure?

enter image description here

I can's assign a layout to it. this is before and after maximizing the window.

enter image description here

enter image description here

SamuelNLP
  • 4,038
  • 9
  • 59
  • 102

1 Answers1

2

Why can't you assign a layout to it? You just have to give each tab a layout. Drag your widget into the tab. Select the tab, not the widget, click on one of the layouts in the top row of the designer. Your widget will fill the whole tab and resize nicely.

Greenflow
  • 3,935
  • 2
  • 17
  • 28
  • For me what worked was right clicking the tab and selecting a layout in the "Lay out" list in the bottom. – Gonzalo Oct 03 '15 at 21:57