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

qtextstream should support setting device's active channel

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.5
    • Core: Serialization
    • None

    Description

      some time ago, qiodevice gained multi-channel functionality.
      it would make sense to allow qtextstream to exploit this conveniently by setting the channel along with the qiodevice.

      this is already possible by calling setCurrent*Channel() on the device each time before accessing the textstream, but this is obviously neither convenient nor elegant.

      the prime use case would be two text streams on stdout and stderr of a qprocess.

      it's conceivable to add this to other serialization classes like qdatastream as well, but i can't really think of a realistic use case for that.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            buddenha Oswald Buddenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes