QSupportedWritingSystems Class

QSupportedWritingSystems 类用于在内部 Qt 字体数据库中注册字体。更多

头文件: #include <QSupportedWritingSystems>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui

公共函数

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()

构造一个新对象,用于处理支持的书写系统。

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 写入系统对象的副本。

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