I'm saving a custom type of data (in fact instance of a custom data) in a QStandardItem this way:
item.setData(QVariant(my_data))
Now I'm trying to get the data back this way:
data = item.data()
But print type(data) says that data is QVariant.
How can I get my data back? Thanks
Bookmarks