このページでは

QCborStreamReader::StringResult Struct

template <typename Container> struct QCborStreamReader::StringResult

パブリック変数

Container data
QCborStreamReader::StringResultCode status

詳細な説明

StringResult<Container> は、Container が文字列データを格納するために使用される型(QString やQByteArray など)を指定するテンプレートクラスです。

このクラスは、readString() およびreadByteArray() によって、読み込まれた文字列の内容、あるいは解析が完了したかエラーが見つかったことを示す情報とともに返されます。

data の内容が有効となるのは、status がOk である場合のみです。それ以外の場合は、nullとなるはずです。

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

Container StringResult::data

status がOk の場合、文字列から取得した実際のデータが含まれます。

QCborStreamReader::StringResultCode StringResult::status

ストリームから文字列を読み取ろうとした際のステータスが格納されています。

© 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.