How to force QAbstractItemView recalculate items sizeHints
I have QListView and QTabWidget inside QSplitter. QListView is using custom model and custom delegates. In delegate I reimplemented paint and sizeHint methods. But when I resize view - height of elements doesn't recalculated. How can I fix it? Sample images: In google I found that it is possible to emit layoutChanged from the model, but I want only current view to be updated, because content of model doesn't change. Delegate code: void ChatItemDelegate::paint( QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const { painter->save(); ChatItem *item = static_cast