I have a plan to show multiple multi-line HTML texts in a QListWidget with each multi-line HTML text in each row item.

1) With Item delegate my problem is on sizeHint - can it change as per each item text size? Can each item contain HTML multiline-text? Please help with code.
QSize ListDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
return QSize(fixed as per item width, to vary as per multi-line text length which is aligned-justified);
2) Another heavy by simple solution is with QLabel as an WidgetItem for the QListWidget, but as soon I set HTML text in QLabel the item becomes unclickable.

Please help with some code.