Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1158

Have QDir and QDirModel report errors if a function fails.

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.3.2
    • Core: I/O
    • None

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            stormols Marius Storm-Olsen
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes