Hi,
you could use QStandardItemModel::itemFromIndex() and cast it your item type, but even better is to use QStandardItem::setData() when creating your item and retrieve the id back using QStandardItem::data(). Thus you may be able to skip your item subclass.
Lykurg
P.s.: Please use the [code] tags next time.





Reply With Quote


Bookmarks