QCborParserError Struct
Il QCborParserError viene utilizzato da QCborValue per segnalare un errore di analisi sintattica. Maggiori informazioni...
| Intestazione: | #include <QCborParserError> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
- Elenco di tutti i membri, compresi quelli ereditati
- QCborParserError fa parte del supporto CBOR in Qt.
Nota: tutte le funzioni di questa struttura sono rientranti.
Funzioni pubbliche
| QString | errorString() const |
Variabili pubbliche
Descrizione dettagliata
Questa classe viene utilizzata dalla funzione ` QCborValue::fromCbor` (`const QByteArray &ba, QCborParserError *error`) per segnalare un errore di analisi e l'offset in byte in cui è stato rilevato l'errore.
Vedi anche QCborValue e QCborError.
Documentazione delle funzioni membro
QString QCborParserError::errorString() const
Restituisce una rappresentazione stringa del codice di errore. Questa stringa non viene tradotta.
Vedi anche QCborError::toString() e QCborValue::fromCbor().
Documentazione sulle variabili membro
QCborError QCborParserError::error
Questo campo contiene il codice di errore che indica quale problema di decodifica è stato rilevato.
Vedi anche QCborValue::fromCbor().
qint64 QCborParserError::offset
Questo campo contiene l'offset dall'inizio dei dati in cui è stato rilevato l'errore. L'offset dovrebbe indicare l'inizio dell'elemento che conteneva l'errore, anche se l'errore stesso si trovava altrove (ad esempio, in caso di problemi di decodifica UTF-8).
Vedi anche QCborValue::fromCbor().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.