user interface - Qt-designer: enlarging the window does not replace my items -
user interface - Qt-designer: enlarging the window does not replace my items -
to maintain question simple possible, prepared simple qt designer form below
there tab widget on left side , empty qwidget on right side, qwidget groupbox. groupbox has radio , pusbuttons (you can see them on object inspector window on photo ). tab widget has line edit. central widget has gridlayout , horizontal qsplitter used.
my issue when enlarge window, items (lineedit, radiobutton, pushbutton) on prepare position. here illustration mean:
what want when window enlarged items should placed on bottom of window, or if in middle, should remain in middle. ( don't want size of buttons/lineedits changed).
how can it?
the items want move dynamically, window resizing must in layout. so, in illustration you've posted, need 2 layouts; 1 within tab widget, qlineedit , @ to the lowest degree 1 in groupbox radio button , force button.
if want radio , force button aligned horizontally, can start placing them in horizontal layout, before placing layout in another, reside in grouping box.
when start add together items layouts, such force buttons, you'll start notice can stretched, may need set size policies of widgets.
qt user-interface qt-designer
Comments
Post a Comment