QDomDocument::ParseResult Struct
struct QDomDocument::ParseResult结构体用于存储QDomDocument::setContent() 的结果。更多
此结构在 Qt 6.5 中引入。
- 所有成员(包括继承成员)的列表
- ParseResult 属于XML 类。
公共函数
bool | operator bool() const |
公共变量
qsizetype | errorColumn |
qsizetype | errorLine |
QString | errorMessage |
详细说明
QDomDocument::ParseResult 结构用于存储QDomDocument::setContent() 的结果。如果在解析 XML 文档时发现错误,错误信息、行和列编号将存储在ParseResult
中。
另请参阅 QDomDocument::setContent() 。
成员函数文档
[explicit noexcept]
bool 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()。
© 2025 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.