Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QGridLayout label extra spacing

    General and Desktop
    2
    2
    454
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WhatIf last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        Maybe you forgot to add a (vertical) spacer?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post