Hi,
I am trying to change the height of my rows with a custom item delegate.
I got this, but it doesn't work...
QSize ListItemDelegate
::sizeHint(const QStyleOptionViewItem
& option,
const QModelIndex
& index
) {
size.setHeight(size.height()+10);
return size;
}
QSize ListItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index)
{
QSize size = QItemDelegate::sizeHint(option, index);
size.setHeight(size.height()+10);
return size;
}
To copy to clipboard, switch view to plain text mode
What am I doing wrong?
Thanks in advance,
Gillis
Bookmarks