Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGridLayout label extra spacing
WhatIf last edited by
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!
A Former User last edited by
Maybe you forgot to add a (vertical) spacer?