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

QCborStreamReader::setDevice needs explicit reparse

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.0 Beta 2
    • Fix Version/s: 5.12.0 RC
    • Component/s: Core: I/O
    • Labels:
      None
    • Platform/s:
      macOS
    • Commits:
      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

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              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