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 // Exposed to QML as an anonymous type, so new properties can be FINAL
20 Q_PROPERTY(Qt::ContrastPreference contrastPreference READ contrastPreference NOTIFY contrastPreferenceChanged FINAL REVISION(6, 10))
21 Q_PROPERTY(Qt::MotionPreference motionPreference READ motionPreference NOTIFY motionPreferenceChanged FINAL REVISION(6, 12))
22
23public:
24 explicit QAccessibilityHints(QObject *parent = nullptr);
25 ~QAccessibilityHints() override;
26
27 Qt::ContrastPreference contrastPreference() const;
28 Qt::MotionPreference motionPreference() const;
29
30Q_SIGNALS:
31 void contrastPreferenceChanged(Qt::ContrastPreference contrastPreference);
32 void motionPreferenceChanged(Qt::MotionPreference motionPreference);
33
34protected:
35 bool event(QEvent *event) override;
36};
37
38QT_END_NAMESPACE
39
40#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.