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

Teach QXmlInputSource to report progress

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.6.3, 4.7.0, 4.7.1
    • None

    Description

      Suppose I want to read OpenStreetMaps XML. I want to report progress (how many bytes) of input is read.

      Today, QXmlInputSource does not able to report progress.

      I can use hack and use QIODevice::pos(), but it is the hack.

      Maybe, new member function int progress(), which will return percent of input file (data) read ?
      if file is sequental (like socket), progress should return special value (like -1).

      Other solution is something like QFuture / QFutureWatcher ....

      The main purpose is to show QProgressBar / QProgressDialog

      Attachments

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

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            socketpair@gmail.com Коренберг Марк
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes