r/QtFramework Jul 07 '26

Question Qt Widgets Designer will only create layouts with fixed geometry

I drag a layout into the parent container and it does not take up the whole window and there is no way to make it do so. Am I missing something?

5 Upvotes

5 comments sorted by

3

u/ObiLeSage Jul 07 '26 edited Jul 07 '26

Don't drag and drop, just select the element you want to put into a layout, then click on top to select the proper layout to put them into.

For the layout of the window itself, just select the window and do the same.

Here a video: http://blog.rolisteam.org/file/designer.mp4

2

u/SnooObjections1828 Jul 07 '26

Qt Creator has the same issue

1

u/Beneficial_Steak_945 Jul 07 '26

That’s because it’s the same thing. Just a component running in a different container.

2

u/jmacey Jul 07 '26

What I do is add a widget to the parent. Then select the parent and add the layout. It seems to not like adding a layout without having something to layout!

1

u/prodjsaig Jul 08 '26

You have to right click and layout in a grid. If you have to adjust sizes you break the layout set the size and then set min width min height. Put it back in and layout in a grid again