本页内容

QXmlStreamNotationDeclaration Class

QXmlStreamNotationDeclaration 类表示一个 DTD 符号法声明。更多内容...

标题: #include <QXmlStreamNotationDeclaration>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

注意:该类中的所有函数均为可重入的。

QXmlStreamNotationDeclaration 的比较

类别可比较类型
相等性QXmlStreamNotationDeclaration

公共函数

QXmlStreamNotationDeclaration()
QStringView name() const
QStringView publicId() const
QStringView systemId() const
QXmlStreamNotationDeclarations
bool operator!=(const QXmlStreamNotationDeclaration &lhs, const QXmlStreamNotationDeclaration &rhs)
bool operator==(const QXmlStreamNotationDeclaration &lhs, const QXmlStreamNotationDeclaration &rhs)

详细说明

一个标记声明由name()、systemId()和publicId()组成。

成员函数文档

QXmlStreamNotationDeclaration::QXmlStreamNotationDeclaration()

创建一个空的符号声明。

QStringView QXmlStreamNotationDeclaration::name() const

返回该符号的名称。

QStringView QXmlStreamNotationDeclaration::publicId() const

返回公共标识符。

QStringView QXmlStreamNotationDeclaration::systemId() const

返回系统标识符。

相关非成员

QXmlStreamNotationDeclarations

QList<QXmlStreamNotationDeclaration> 的同义词。

[noexcept] bool operator!=(const QXmlStreamNotationDeclaration &lhs, const QXmlStreamNotationDeclaration &rhs)

比较lhs 的语法声明与rhs ,如果两者不相同,则返回true ;否则返回false 。

[noexcept] bool operator==(const QXmlStreamNotationDeclaration &lhs, const QXmlStreamNotationDeclaration &rhs)

比较lhs 的符号声明与rhs ,如果两者相等,则返回true ;否则返回false 。

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