このページでは

QCborParserError Struct

QCborParserError は、QCborValue が構文解析エラーを報告するために使用されます。詳細...

ヘッダー: #include <QCborParserError>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

注:この構造体のすべての関数は再入可能です。

パブリック関数

QString errorString() const

パブリック変数

QCborError error
qint64 offset

詳細な説明

このクラスは、QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error) によって、パーサーエラーと、エラーが検出されたバイトオフセットを報告するために使用されます。

QCborValue およびQCborErrorも参照してください 。

メンバ関数のドキュメント

QString QCborParserError::errorString() const

エラーコードを文字列として返します。この文字列は翻訳されません。

QCborError::toString() およびQCborValue::fromCbor()も参照してください 。

メンバ変数のドキュメント

QCborError QCborParserError::error

このフィールドには、どのようなデコードの問題が検出されたかを示すエラーコードが含まれています。

QCborValue::fromCbor()も参照してください 。

qint64 QCborParserError::offset

このフィールドには、エラーが検出されたデータの先頭からのオフセットが格納されます。エラー自体が別の場所にある場合(たとえば、UTF-8のデコードに関する問題など)であっても、このオフセットはエラーを含む項目の先頭を指す必要があります。

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.