Analog of Java Form Layout in Qt
Posted
by Narek
on Stack Overflow
See other posts from Stack Overflow
or by Narek
Published on 2010-03-28T15:47:24Z
Indexed on
2010/03/28
15:53 UTC
Read the original article
Hit count: 161
Once I have programmed GUI with Java and have used Form Layouts. Form layout (if I am not mistaken that is from SWT library) made possible to give right, left, top and bottom adges of any GUI element (widget) with respect to other widgets in the same widget (parent widget) or with respect to the adges of parent widget. So it was possible to control the future of widgets that are inside of another one, when that "another widget" is being resized.
In Qt I have find the QFormLayout which is similar to Java one, but seems I can't handle with widgets as flexible in terms of relative positioning, as it was with Java's Form Layout.
So are there any other means to give a widget position with respect to the others (without overloading resizeEvent function) as that was in Java?
Thanks.
© Stack Overflow or respective owner