supergillis
24th November 2008, 10:45
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)
{
QSize size = QItemDelegate::sizeHint(option, index);
size.setHeight(size.height()+10);
return size;
}
What am I doing wrong?
Thanks in advance,
Gillis
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)
{
QSize size = QItemDelegate::sizeHint(option, index);
size.setHeight(size.height()+10);
return size;
}
What am I doing wrong?
Thanks in advance,
Gillis