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. Empty space before/after ListView items
QtWS25 Last Chance

Empty space before/after ListView items

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 238 Views
  • 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.
  • C Offline
    C Offline
    Cocojambo
    wrote on last edited by Cocojambo
    #1

    When using ListView is it possible to remove that empty space before/after items when you drag items at the beginning/ending?
    I use an example from the documentation.

    spacing.png

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      Use the boundsBehavior property:

      ListView {
          boundsBehavior: Flickable.StopAtBounds
          ...
      }
      
      C 1 Reply Last reply
      2
      • GrecKoG GrecKo

        Use the boundsBehavior property:

        ListView {
            boundsBehavior: Flickable.StopAtBounds
            ...
        }
        
        C Offline
        C Offline
        Cocojambo
        wrote on last edited by
        #3

        @GrecKo Perfect! Thank you :)

        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