ParseResult Struct

struct QDomDocument::ParseResult

この構造体は、QDomDocument::setContent() の結果を格納するために使用される。詳細...

この構造体は Qt 6.5 で導入されました。

パブリック関数

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

このフィールドには、XMLドキュメントのパース中にQDomDocument::setContent() が見つけたエラーの行番号が格納される。

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.