PDA

View Full Version : Icon margin in QListView



mpi
1st July 2010, 10:47
How do I control the margin/interspacing between the icons in a QListView? Have attached screenshot, were I believe a little extra 'white space' would be appropriate.

aamer4yu
1st July 2010, 10:49
May be QListView::setIconSize might help you.

mpi
1st July 2010, 12:08
Unfortunately not. It changes the icon size, but the margin is still zero (on Linux).

aamer4yu
1st July 2010, 12:26
Then may be you will need to use delegates and set the icon rect properly there.

mpi
1st July 2010, 13:56
I think I'll leave it at the default behavior then. But thanks for the input.