Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. GridLayout items vertically centered
Qt 6.11 is out! See what's new in the release blog

GridLayout items vertically centered

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 286 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.
  • ocgltdO Offline
    ocgltdO Offline
    ocgltd
    wrote on last edited by
    #1

    I have a GridLayout and when there aren't enough items to fill the space, the rows seem to space out evenly to fill the vertical space. I would like the row to be forced to the top of the GridLayout.

    I tried Layout.alignment: Qt.AlignTop in the GridLayout but it made no difference. How can I achieve this?

    1 Reply Last reply
    0
    • oria66O Offline
      oria66O Offline
      oria66
      wrote on last edited by
      #2

      @ocgltd Hi. Can you provide some code or image to understand better your situation?

      The truth is out there

      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