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 |
(从 6.10 起)
contrastPreference
: const Qt::ContrastPreference
| 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).