Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
4.6.2, 4.8.3, 5.4.1
-
None
-
Reproduced on Qt 4.6.2 on Ubuntu Lucid & Qt 4.8.3 on Windows 7.
-
acf43c17b647cdbfc3186bb8bf7e183df67a090b
Description
When using QFileSystemModel the isDir function returns false even if the file is a directory. This happens when the QModelIndex object is returned programmatically using the model.index(QString &path) function on a path that was not accessed via the GUI viewer object.
Example (see attached file):
index = model.index("C:\\Qt\\4.8.3\\include
QtGui");
model.isDir(index); // Should be True, returns False