QFileSystemModel* _dirModel = new QFileSystemModel(this);
.
.
_dirModel->rmdir(index);
_dirModel->remove(index);
"rmdir" seems to be made for removing directories, but I succesfully deleted directory with "remove" as well. What's the point of having "rmdir" while "remove" can do the same job?