hello, all,
I want to modify QListView item height or spacing between items. How to modify it?
qstyle? I don't find the property... :o
Printable View
hello, all,
I want to modify QListView item height or spacing between items. How to modify it?
qstyle? I don't find the property... :o
Hi,
QListView is derived class of QWidget.
So you can use setFixedHeight ( int h ) i think..
Thanks,
Santhosh
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);
Can you show us some code of what u are doing ?
hard to say whats wrong without seeing more
Try this in the last resort:
If you're using a delegate, try to override the sizeHint method.
Header:
Source:
Code:
{ }