QDomDocument::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 noexcept] bool ParseResult:: operator bool () const

返迴 false if any error is found by QDomDocument::setContent ();否則返迴 true .

另請參閱 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 ().