Does your sub-class re-implement the other QDirModel::index (the one that takes int row, int column, const QModelIndex& parent), or declare some other member function named “index”?
If so, that declaration hides all inherited functions by the same name. In that case, you could add: to the definition of your derived class to allow overload resolution of the name “index” to include member functions from QDirModel.
Bookmarks