Hi everyone,
Today question from UI’s modeling.
I’d like to dynamicly display different QWidget Form in one area of Form. Simple preview:
Main area to load my widgets:
And one of my widgets which will be loaded to that area:
The first thing is, how to force aligning my loaded widget forms to this specified area?
And the second thing is, how to align that widget’s area to sides of window? For example, I’d like to pin area to left, top and right edges of window.
Another thing is, how to pin each component (object) of my widget’s Form to specified side? For example, I’d like to pin button “Add” to left bottom corner of widget’s form and other two buttons pin to right bottom corner. And their should stay on its places when user resize window.
As I Googled, this could be done by Layouts in Qt Designer, but everytime I set some layout then buttons are resized, even if I use Horizontal Spacers.
This is very cute solved in Visual Studio, because the only I have to do is to set aligment for each object on Form. Is something similar in Qt Designer?
↧