QAccessibilityHints Class

QAccessibilityHints 类包含平台特定的辅助功能提示和设置。更多

头文件: #include <QAccessibilityHints>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Qt 6.10
继承: QObject

属性

公共功能

Qt::ContrastPreference contrastPreference() const

信号

void contrastPreferenceChanged(Qt::ContrastPreference contrastPreference)

重新实现的受保护函数

virtual bool event(QEvent *event) override

详细说明

该类捆绑了平台特定的辅助功能设置,可通过QStyleHints::accessibility 访问。

另请参见 QStyleHints

属性文档

[read-only, since 6.10] contrastPreference : const Qt::ContrastPreference

该属性用于保存系统设置的对比度模式。

应用程序可使用该属性来确定系统当前使用的对比度设置。

Qt 样式使用此属性来调整调色板颜色和轮廓。

此属性在 Qt 6.10 中引入。

访问函数:

Qt::ContrastPreference contrastPreference() const

Notifier 信号:

void contrastPreferenceChanged(Qt::ContrastPreference contrastPreference)

另请参阅 Qt::ColorSchemeQGuiApplication::palette() 和QEvent::PaletteChange

成员函数文档

[override virtual protected] bool QAccessibilityHints::event(QEvent *event)

重实现:QObject::event(QEvent *e)。

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