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