Otherwise, you could try adding QPointer containing the pointer to the interface as item data, and not directly the interface pointer.

Regards