Hello,
Is there any difference in accessing indexes' parents through the indexes themselves, with QModelIndex:: parent(), or through the model they belong to, with QAbstractItemModel:: parent(const QModelIndex & index)?
I have a hard time understanding which of the model or the the indexes should keeep the tree hierachy information?
Also, since QAbstractItemModel::createIndex(int row, int column, void * ptr = 0) does not offer to specify a parent index when creating a new index, how does an QModelIndex know what parent index it belongs to using QModelIndex:: parent()?
Thanks,
Bookmarks