QAccessibilityHints Class
The QAccessibilityHints class contains platform specific accessibility hints and settings. More...
Header: | #include <QAccessibilityHints> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Since: | Qt 6.10 |
Inherits: | QObject |
Properties
(since 6.10)
contrastPreference : const Qt::ContrastPreference
Public Functions
Qt::ContrastPreference | contrastPreference() const |
Signals
void | contrastPreferenceChanged(Qt::ContrastPreference contrastPreference) |
Reimplemented Protected Functions
virtual bool | event(QEvent *event) override |
Detailed Description
This class bundles together platform specific accessibility settings, and can be accessed from QStyleHints::accessibility.
See also QStyleHints.
Property Documentation
[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.
This property was introduced in Qt 6.10.
Access functions:
Qt::ContrastPreference | contrastPreference() const |
Notifier signal:
void | contrastPreferenceChanged(Qt::ContrastPreference contrastPreference) |
See also Qt::ColorScheme, QGuiApplication::palette(), and QEvent::PaletteChange.
Member Function Documentation
[override virtual protected]
bool QAccessibilityHints::event(QEvent *event)
Reimplements: 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.