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

QCborStreamReader::setDevice needs explicit reparse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 RC
    • 5.12.0 Beta 2
    • Core: I/O
    • None
    • macOS
    • e7998dc187cf8f1218711ac963c441afbea1577c (qt/qtbase/5.12)

    Description

      When setting the device not in the constructor but with setDevice, parsing will fail when reparse is not called. Not sure this qualifies as a bug, but this behavior is not mentioned in the setDevice or reparse documentation.

      QProcess p;
      p.start("processor");
      p.waitForFinished();
      
      QCborStreamReader cbr;
      cbr.setDevice(&p);
      cbr.reparse(); // parsing will fail without this
      
      // do parsing
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes