Thanks to both.
I don't give a parent to QListWidgetItem constructor if I use insertItem method.
I overridden operator<.
It works now.
Then you should also implement the sizeHint method of your delegate
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.