Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.2
-
None
Description
The methods of QDir and QDirModel such as QDir::mkdir(), QDir::mkpath(), QDir::rmpath(), QDirModel::remove() and QDirModel::rmdir() etc. will return false if they fail.
It would be nice if these classes could provide an error() method which would allow the programmer to know and tell the user the reason why the operation failed, e.g. Access denied, path too long, or directory not empty.