Just new a QListView in an Object. I wonder why setSpacing(...) function doesn't work..

Quote Originally Posted by aamer4yu View Post
How are you using QLIstView ?
If you are using model, you need to return size hint from the data() function of the model.

something like
if(role == Qt::sizeHintRole)
return QSize(width,height);