QAccessibilityHints Class | Qt GUI | Qt 6.12.0
Description: The QAccessibilityHints class contains platform specific accessibility hints and settings.
Keywords: class

- Qt 6.12
- Qt GUI
- C++ Classes
- QAccessibilityHints
- Qt 6.12.0 Reference Documentation

# 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

- List of all members, including inherited members

## Properties

- `(since 6.10)` contrastPreference : Qt::ContrastPreference
- `(since 6.12)` motionPreference : Qt::MotionPreference

## Public Functions

Qt::ContrastPreference | contrastPreference() const
Qt::MotionPreference | motionPreference() const

## Signals

void | contrastPreferenceChanged(Qt::ContrastPreference contrastPreference)
void | motionPreferenceChanged(Qt::MotionPreference motionPreference)

## 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 : 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 enumeration 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.

### `[read-only, since 6.12]` motionPreference : Qt::MotionPreference

This property holds the motion preference set by the system.

This property can be used by the application to determine if the user interface should have fewer animated effects. Respecting this preference may make the application more accessible to those that suffer from vestibular motion disorders.

This enumeration was introduced in Qt 6.12.

Access functions:

Qt::MotionPreference | motionPreference() const

Notifier signal:

void | motionPreferenceChanged(Qt::MotionPreference motionPreference)

See also contrastPreference.

## Member Function Documentation

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

Reimplements: QObject::event(QEvent *e).