QXmlStreamEntityResolver Class

QXmlStreamEntityResolver 类为QXmlStreamReader...提供了一个实体解析器。

头文件: #include <QXmlStreamEntityResolver>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

注意:该类中的所有函数都是可重入的

公共函数

virtual ~QXmlStreamEntityResolver()
virtual QString resolveUndeclaredEntity(const QString &name)

详细说明

成员函数文档

[virtual noexcept] QXmlStreamEntityResolver::~QXmlStreamEntityResolver()

销毁实体解析器。

[virtual] QString QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString &name)

解析未声明的实体name 并返回其替换文本。如果实体解析器也不知道该实体,则返回空字符串。

默认实现总是返回空字符串。

© 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.