QXmlLocator Class
QXmlLocatorクラスは、XMLハンドラクラスにファイル内の解析位置に関する情報を提供します。詳細...
ヘッダ | #include <QXmlLocator> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core5Compat) target_link_libraries(mytarget PRIVATE Qt6::Core5Compat) |
qmake: | QT += core5compat |
注意:このクラスの関数はすべてリエントラントです。
パブリック関数
QXmlLocator() | |
virtual | ~QXmlLocator() |
virtual int | columnNumber() const = 0 |
virtual int | lineNumber() const = 0 |
詳細説明
リーダは、ドキュメントのパースを開始する前にコンテンツハンドラに QXmlLocator を報告します。これはQXmlContentHandler::setDocumentLocator() 関数で行われます。ハンドラクラスは、このロケータを使用して、リーダーが到達した位置 (lineNumber() とcolumnNumber()) を取得することができます。
© 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.