August 9, 2011

jkosonen jkosonen
Lab Rat
66 posts

[Solved] Padding to listview/gridview

 

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?

4 replies

August 9, 2011

ZapB ZapB
Robot Herder
1354 posts

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

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

August 9, 2011

Kypeli Kypeli
Lab Rat
41 posts

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.

August 9, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

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

August 9, 2011

jkosonen jkosonen
Lab Rat
66 posts

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

 
  ‹‹ Caps Lock      Qt.openUrlExternally() sometimes works on Symbian^3 and sometimes not, why is this? ››

You must log in to post a reply. Not a member yet? Register here!