QGridLayout label extra spacing



  • Hi,

    I created a gridlayout (5 columns & 11 rows) using qt designer. The problem I'm having is the extra spacing between the labels and lineedits, comboboxex, etc.. All labels are in the first column.

    I tried to set the width maximumsize for all labels to 210 which is wide enough to show all text in labels but it didn't help. There is still wide space between the labels and the lineedits specially when I maximize the app.

    I changed the layoutHorizontalSpacing and layoutVerticalSpacing to 0 and didn't help.

    Would greatly appreciate your advice!


  • Moderators

    Maybe you forgot to add a (vertical) spacer?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.