Solved Widgets: How to create dynamic dialog layout?
-
see this video explainer:
https://karaoke.kjams.com/screenshots/Qt/dialog_help.mp4Any hints how to build this using a Qt Designer form?
Do i use nested "Layouts"? how do i set them up?Thanks!
-
thanks! that really helps!
-
hi
good with video.
One way is to use the layout stretch factor to allocate more space to the one in the middle
And yes, you can use the red layouts to insert into other layout and sub divide a layout into areas
I just used widgets here but red layout also works. -
@mrjj is correct, it's a play between the different layouts and stretch factors (and maybe spacer items). Here's my suggestion on how you can do it:
Dashed lines are cell demarcations for the different layouts. I used colors intentionally to (hopefully) make it clear what goes into what and what exactly each object is; but please don't mock my artistic skills, or rather the lack thereof ... ;)
-
@kshegunov
Its beautiful. Very creative and in color :) -
@mrjj said in Widgets: How to create dynamic dialog layout?:
Its beautiful. Very creative and in color :)
You're too nice ;)
Long live inkscape. If I knew how to capture my screen I'd've just recorded it directly from QtCreator as it's less work and you know I'm a lazy bastard ... :D -
thanks! that really helps!