Resize buttons in different layouts of Qt form -
sorry bad english. have 2 horizontal layouts buttons , text edits , grid layout buttons. form has vertical layout. need buttons text edits resize vertically same buttons in grid layout. can make 1 of parts of form resize: when buttons in horizontal layouts have size policy expanding, grid layout not resize, otherwise grid layout resizes.
screenshots
the problem resides in stretch distribution of verticallayout (qvboxlayout) of centralwidget. @ moment space rather equally distributed (taking minimum size account) on 2 vertical layouts , grid layout. want distribution of 1 (vertical layouts) 7 (grid layout), because there 7 rows in grid layout. so, should change centralwidget > layout > layoutstretch
factor 1,1,0,7
. (0
vertical line)
Comments
Post a Comment