No, you didn't. You subclassed the model (and did it incorrectly) and not used it.
I don't know what can or can't be. I know all the functionality of your list is already in the standard item model. So either don't use the list or don't use QStandardItemModel. A proper approach is to get rid of QStandardItemModel, but it's more work to implement your own model instead of using the standard one.And the order list simply cannot be redundant because I need it in other parts of project. So I cannot have QStandardModel with this list or what now?!
Bookmarks