Details
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
For Gerrit Dashboard: QTBUG-71426 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
243937,3 | QCborStreamReader: make sure setDevice() clears the last error | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |