本页内容

QCborStreamReader::StringResult Struct

template <typename Container> struct QCborStreamReader::StringResult

公共变量

Container data
QCborStreamReader::StringResultCode status

详细说明

StringResult<Container> 是一个模板类,其中Container 指定了用于存储字符串数据的类型(例如QString 或QByteArray )。

该类由readString() 和readByteArray() 返回,其中包含读取的字符串内容,或表示解析已完成或发现错误。

只有当status 为Ok 时,data 的内容才有效。否则,其值应为 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.