Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGridLayout label extra spacing
Qt 6.11 is out! See what's new in the release blog

QGridLayout label extra spacing

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 693 Views 1 Watching
  • 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 Offline
    W Offline
    WhatIf
    wrote on last edited by
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Maybe you forgot to add a (vertical) spacer?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved