C++ (Qt)....QModelIndex CTreeModel::index(int row, int column, const QModelIndex &parent) const{ if (!hasIndex(row, column, parent)) return QModelIndex();............................................ return createIndex(row, column, ....);}