Hi,

I have an subclassed QItemDelegate to draw my own content to a QListView. In the sizeHint function I need to know if the item is selected. Unfortunately the given QStyleOptionViewItem doesn't hold this information. The only way I see is the selection model of the parent QListView. But how I get a pointer the the QListView out of the "QItemDelegate::sizeHint()" with the given QModelIndex or QStyleOptionViewItem?


Thanks,

Lykurg