I have QListView with custom implementation of QItemDelegate. MyItemDelegate reimplements createEditor() to show custom widget. Size of widget is dependant on content. By default, each row height is about 20px (one row), but my editor has bigger height. I was trying to override QItemDelegate::sizeHint() method, but is doesn't contains reference to editor, so I couldn't calculate correct size.
How can I make QListView resize rows to actual size of editor?