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. [Solved] Padding to listview/gridview
Forum Updated to NodeBB v4.3 + New Features

[Solved] Padding to listview/gridview

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 4.8k 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.
  • J Offline
    J Offline
    jkosonen
    wrote on last edited by
    #1

    Is it possible to add some bottom padding to listview so that the last item comes "padding pixels" over the bottom of the list/grid?

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      Have you tried setting a different component for the ListView.footer property?

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kypeli
        wrote on last edited by
        #3

        You can also place the ListView inside an Item that is taller than the ListView. Then anchor the ListView to the top of the Item.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Kypeli, or simple set bottomMargin of anchors with fillIn set or bottom anchor set

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jkosonen
            wrote on last edited by
            #5

            Hey thanks, the footer worked! Margin doesn't work since that affects to all items not just to the last one..

            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