Qt Forum

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

    [Solved] Padding to listview/gridview

    QML and Qt Quick
    4
    5
    4264
    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.
    • J
      jkosonen last edited by

      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 Reply Quote 0
      • Z
        ZapB last edited by

        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 Reply Quote 0
        • K
          Kypeli last edited by

          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 Reply Quote 0
          • D
            DenisKormalev last edited by

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

            1 Reply Last reply Reply Quote 0
            • J
              jkosonen last edited by

              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 Reply Quote 0
              • First post
                Last post