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())を取得できるようになります。
© 2026 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.