How to set the height of row in QListView?
How to set the height of row in QListView?
I tried to reimplement sizeHint in my delegate
QSize QPushButtonDelegate::sizeHint (const QStyleOptionViewItem & option, const QModelIndex & index )
{
QSize s;
qDebug("sizeHint");
s.setWidth(option.rect.width());
s.setHeight(130);
return s;
}
but nothing hapense
What is wrong?
Do you see the debug message? How do you set the model and the delegate?
did you forgot to add a const ?
QSize QPushButtonDelegate::sizeHint (const QStyleOptionViewItem & option, const QModelIndex & index ) const
Bookmarks