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

Have QDir and QDirModel report errors if a function fails.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.2
    • Core: I/O
    • 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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes