6.0.0-rc4Source

QCborParserError Struct

The QCborParserError class is used by QCborValue to report a parsing error. More…

Header#include <QCborParserError>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes
Since5.12

List of all members, including inherited members

Public Functions

Public Variables

Detailed Description

QCborValue::fromCbor() fills it in when the data is not valid CBOR: the error, and the offset in bytes where it was found.

See also QCborValue::fromCbor().

Differences from Qt

None.

Member Function Documentation

QString QCborParserError::errorString() const

Returns a text for the error.

See also QCborError::toString().

Member Variable Documentation

QCborError QCborParserError::error

The error that was found, or QCborError::NoError.

qint64 QCborParserError::offset

The offset in bytes at which the error was found.