dose the other column widget influnces the whole gridlayout widgets?
-
I put some widgets on the qgridlayout.
row1:qlabel,qlineedit
row2:qlabel,qlineedit
row3::qlabel,qlineedit
row4:qwidgetI put the qwidget which width is wider than the qlabel.So how to set the gridlayout so that the row1 and row3'width wouldnt be changed by the row4 qwidget?
I added an extra layout on the gridlayout for the row4 qwidget.but didnt work.Heres the pic that what I want to do.the yellow part is the area of widgets,the border means different parts of widgets. -
@nicker-player
Don't really know what you mean, obviously in a grid layout the width of a column in one row will influence the width in another row. Use fixed widths and/or use a column span maybe in your row #4? -
@nicker-player
Start with a vertical layout
add a first grid layout to it
add a horizontal layout for the widget alone
add a second grid layout -
@mpergand
The issue with that approach is that the two grid layouts are quite independent, so there is no guarantee at all that column1 will be same width in both.@nicker-player
By all means try @mpergand's suggestion. But your row #5 could just be a two-column span, maybe you already know that.