Hi ,

I am using QFileSystemModel to find the filenames, filesize, fileIcon and filePath of the files placed in C drive. So i used the QFileSystemModel.

The rowCount returns 0 and columnCount returns 4 .I dont understand the reason ? Please tell if there is anything that i can use to get the data apart from QFileSystemModel.
QFileSystemModel* fileModel = new QFileSystemModel;QModelIndex index = fileModel->setRootPath(QString("C:/"));
QString rootpath = fileModel->rootPath();
qDebug() << rootpath;
int rowCount = fileModel->rowCount();
int columnCount = fileModel->columnCount();