QSupportedWritingSystems Class
在将字体注册到 Qt 内部字体数据库时,会使用 QSupportedWritingSystems 类。更多内容...
| 头文件: | #include <qplatformfontdatabase.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
- 所有成员的列表,包括继承的成员
- QSupportedWritingSystems 属于绘图类。
公共函数
| QSupportedWritingSystems() | |
| QSupportedWritingSystems(const QSupportedWritingSystems &other) | |
| ~QSupportedWritingSystems() | |
| void | setSupported(QFontDatabase::WritingSystem writingSystem, bool support = true) |
| bool | supported(QFontDatabase::WritingSystem writingSystem) const |
| QSupportedWritingSystems & | operator=(const QSupportedWritingSystems &other) |
成员函数文档
QSupportedWritingSystems::QSupportedWritingSystems()
创建一个新对象,用于处理受支持的书写系统。
QSupportedWritingSystems::QSupportedWritingSystems(const QSupportedWritingSystems &other)
创建other 书写系统对象的副本。
[noexcept] QSupportedWritingSystems::~QSupportedWritingSystems()
销毁“受支持的书写系统”对象。
void QSupportedWritingSystems::setSupported(QFontDatabase::WritingSystem writingSystem, bool support = true)
根据support 中给定的值,设置或清除对指定writingSystem 的支持。
另请参阅 supported()。
bool QSupportedWritingSystems::supported(QFontDatabase::WritingSystem writingSystem) const
如果writingSystem 指定的书写系统受支持,则返回true ;否则返回false 。
另请参阅 setSupported()。
QSupportedWritingSystems &QSupportedWritingSystems::operator=(const QSupportedWritingSystems &other)
创建other 书写系统对象的副本。
© 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.