Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qaccessibilityhints.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QACCESSIBILITYHINTS_H
6#define QACCESSIBILITYHINTS_H
7
8#include <QtGui/qtguiglobal.h>
9#include <QtCore/qobject.h>
10
11QT_BEGIN_NAMESPACE
12
13class QAccessibilityHintsPrivate;
14
15class Q_GUI_EXPORT QAccessibilityHints : public QObject
16{
17 Q_OBJECT
18 Q_DECLARE_PRIVATE(QAccessibilityHints)
19 Q_PROPERTY(Qt::ContrastPreference contrastPreference READ contrastPreference NOTIFY contrastPreferenceChanged FINAL REVISION(6, 10))
20 Q_PROPERTY(Qt::MotionPreference motionPreference READ motionPreference NOTIFY motionPreferenceChanged FINAL REVISION(6, 12))
21
22public:
23 explicit QAccessibilityHints(QObject *parent = nullptr);
24 ~QAccessibilityHints() override;
25
26 Qt::ContrastPreference contrastPreference() const;
27 Qt::MotionPreference motionPreference() const;
28
29Q_SIGNALS:
30 void contrastPreferenceChanged(Qt::ContrastPreference contrastPreference);
31 void motionPreferenceChanged(Qt::MotionPreference motionPreference);
32
33protected:
34 bool event(QEvent *event) override;
35};
36
37QT_END_NAMESPACE
38
39#endif // QACCESSIBILITYHINTS_H
void updateMotionPreference(Qt::MotionPreference motionPreference)
The QAccessibilityHints class contains platform specific accessibility hints and settings....
Combined button and popup list for selecting options.