Search code examples
c++qtlayout

How to make layout fill everything inside qt tab widget?


I added a tab widget in my Qt application, and then added a vertical layout in the first tab, and added things inside the vertical layout. However, I cannot make the vertical layout fill the entire tab, I can only set the dimensions with the mouse. There's no option to make it fill everything.

enter image description here

How to make a vertical layout (or any widget) fill the entire widget tab?


Solution

  • You need to assign a layout to each tab. In Creator, look for the layout in the widget hierarchy!

    enter image description here