First of all you should never access that internal structure directly. You should expose all the data you need using QAbstractItemModel API (choosing to wrap your structure (but not a pointer to it) into QVariant as last choice). If you want to map indices between models, use QAbstractProxyModel::mapToSource().