I'd remove the QModelIndex stuff from the Item completely. It's really confusing, I first didn't get that this index belongs to the object tree model.

Rather, set the data when you create the item.