ParseResult Struct

struct QDomDocument ::ParseResult

The struct is used to store the result of QDomDocument::setContent (). 更多...

This struct was introduced in Qt 6.5.

公共函数

bool operator bool () const

公共变量

qsizetype errorColumn
qsizetype errorLine
QString errorMessage

详细描述

The QDomDocument::ParseResult struct is used for storing the result of QDomDocument::setContent (). If an error is found while parsing an XML document, the message, line and column number of an error are stored in ParseResult .

另请参阅 QDomDocument::setContent ().

成员函数文档编制

[explicit] bool ParseResult:: operator bool () const

返回 true if an error is found by QDomDocument::setContent ();否则返回 false .

另请参阅 QDomDocument::setContent ().

成员变量文档编制

qsizetype ParseResult:: errorColumn

The field contains the column number of an error found by QDomDocument::setContent () while parsing an XML document.

另请参阅 QDomDocument::setContent ().

qsizetype ParseResult:: errorLine

The field contains the line number of an error found by QDomDocument::setContent () while parsing an XML document.

另请参阅 QDomDocument::setContent ().

QString ParseResult:: errorMessage

The field contains the text message of an error found by QDomDocument::setContent () while parsing an XML document.

另请参阅 QDomDocument::setContent ().