QAccessibilityHints Class

The QAccessibilityHints class contains platform specific accessibility hints and settings. 更多...

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

特性

公共函数

Qt::ContrastPreference contrastPreference () const

信号

void contrastPreferenceChanged (Qt::ContrastPreference contrastPreference )

重实现保护函数

virtual bool event (QEvent * event ) override

详细描述

This class bundles together platform specific accessibility settings, and can be accessed from QStyleHints::accessibility .

另请参阅 QStyleHints .

特性文档编制

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

This property holds the contrast mode set by the system.

This property can be used by the application to determine what contrast settings the system is currently using.

Qt styles use this property in order to adjust palette colors and outlines.

此特性在 Qt 6.10 引入。

访问函数:

Qt::ContrastPreference contrastPreference () const

通知程序信号:

void contrastPreferenceChanged (Qt::ContrastPreference contrastPreference )

另请参阅 Qt::ColorScheme , QGuiApplication::palette (),和 QEvent::PaletteChange .

成员函数文档编制

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

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