Qt Forum

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

    Solved Empty space before/after ListView items

    QML and Qt Quick
    2
    3
    75
    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.
    • C
      Cocojambo last edited by Cocojambo

      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 Reply Quote 0
      • GrecKo
        GrecKo Qt Champions 2018 last edited by

        Use the boundsBehavior property:

        ListView {
            boundsBehavior: Flickable.StopAtBounds
            ...
        }
        
        C 1 Reply Last reply Reply Quote 2
        • C
          Cocojambo @GrecKo last edited by

          @GrecKo Perfect! Thank you :)

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