Terribly sorry, but it turned out to be my fault all along.
The line responsible was:
in the sizeHint() method.
No one has replied
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.