QDomDocument::ParseResult Struct
struct QDomDocument::ParseResult该结构体用于存储QDomDocument::setContent() 的返回结果。更多内容...
该结构体在 Qt 6.5 中引入。
- 所有成员列表(包括继承的成员)
- ParseResult 属于XML 类。
公共函数
| operator bool() const |
公共变量
| qsizetype | errorColumn |
| qsizetype | errorLine |
| QString | errorMessage |
详细描述
QDomDocument::ParseResult 结构体用于存储QDomDocument::setContent()的结果。如果在解析XML文档时发现错误,则错误的消息、行号和列号将存储在ParseResult 中。
另请参阅 QDomDocument::setContent()。
成员函数文档
[explicit noexcept] ParseResult::operator bool() const
如果 `QDomDocument::setContent()` 发现任何错误,则返回 `false `;否则返回 `true`。
另请参阅 QDomDocument::setContent()。
成员变量文档
qsizetype ParseResult::errorColumn
该字段包含QDomDocument::setContent()在解析XML文档时发现的错误所在的列号。
另请参阅 QDomDocument::setContent()。
qsizetype ParseResult::errorLine
该字段包含QDomDocument::setContent()在解析XML文档时发现的错误所在的行号。
另请参阅 QDomDocument::setContent()。
QString ParseResult::errorMessage
该字段包含QDomDocument::setContent()在解析XML文档时发现的错误的文本信息。
另请参阅 QDomDocument::setContent()。
© 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.