layout - How to scale an widget in specified in qt -
i have divided main screen in 4 areas border-layout center,right,left , bottom. right, left , bottom areas small , contain buttons. center area has display different widgets , forms depending on buttons pressed in right/left/bottom areas.
can suggest how can design forms or widgets when show widget in center area, fit center area , items inside scaled rationally.
please refer attached image file better idea.
if explanation not clear please let me know try better.

looks have decent start. if have icons, typically icons won't able expand want left,bottom , right containers non-expanding.
the center container (most qstackedwidget in case) expanding both horizontally , vertically.
you need add spacers @ bottom of left area , right area.
the bottom area can use spacers on both sides.
in short
- bottom area: sizepolicy: preferred/minimum, maximumsize: inf/40
- left area: sizepolicy: minimum/preferred, maximumsize: 40/inf
- right area: sizepolicy: minimum/preferred, maximumsize: 40/inf
- center area: sizepolicy: preferred/preferred, maximumsize: inf/inf
here can drag , drop within qtdesigner 
here looks 
here expanded. notice although main area bigger, buttons sides remain same. 
Comments
Post a Comment