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

Feature Request: possibility to know that QIODevice is in error state

    XMLWordPrintable

Details

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

    Description

      Using QtIOCompressor, QBuffer etc and there is an error, it's impossible to know from within the program. errorString reports "Unknown Error" also when no error has occurred.

      Update: Because the errors can only occur in relation to the user calling open, read or write, and all these functions can return an error (i.e., false, 0 or -1), you do know when an error occurs, but there's no way of finding out why programmatically. You can use errorString() to display the error in a log, as console output or in a dialog, though.

      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:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes