Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qaccessiblewidget.h
Go to the documentation of this file.
1// Copyright (C) 2016 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
4#ifndef QACCESSIBLEWIDGET_H
5#define QACCESSIBLEWIDGET_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qaccessibleobject.h>
9
11
12
13#if QT_CONFIG(accessibility)
14
15class QAccessibleWidgetPrivate;
16
17class Q_WIDGETS_EXPORT QAccessibleWidget : public QAccessibleObject, public QAccessibleActionInterface
18{
19public:
20 explicit QAccessibleWidget(QWidget *o, QAccessible::Role r = QAccessible::Client, const QString& name = QString());
21 bool isValid() const override;
22
23 QWindow *window() const override;
24 int childCount() const override;
25 int indexOfChild(const QAccessibleInterface *child) const override;
26 QList<QPair<QAccessibleInterface *, QAccessible::Relation>>
27 relations(QAccessible::Relation match = QAccessible::AllRelations) const override;
28 QAccessibleInterface *focusChild() const override;
29
30 QRect rect() const override;
31
32 QAccessibleInterface *parent() const override;
33 QAccessibleInterface *child(int index) const override;
34
35 QString text(QAccessible::Text t) const override;
36 QAccessible::Role role() const override;
37 QAccessible::State state() const override;
38
39 QColor foregroundColor() const override;
40 QColor backgroundColor() const override;
41
42 void *interface_cast(QAccessible::InterfaceType t) override;
43
44 // QAccessibleActionInterface
45 QStringList actionNames() const override;
46 void doAction(const QString &actionName) override;
47 QStringList keyBindingsForAction(const QString &actionName) const override;
48protected:
49 ~QAccessibleWidget();
50 QWidget *widget() const;
51 QObject *parentObject() const;
52
53 void addControllingSignal(const QString &signal);
54
55private:
56 QAccessibleWidgetPrivate *d;
57 Q_DISABLE_COPY(QAccessibleWidget)
58};
59
60
61#endif // QT_CONFIG(accessibility)
62
64
65#endif // QACCESSIBLEWIDGET_H
\inmodule QtGui
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
\inmodule QtGui
Definition qwindow.h:63
QOpenGLWidget * widget
[1]
QString text
auto signal
rect
[4]
else opt state
[0]
QColor backgroundColor(const QPalette &pal, const QWidget *widget)
Combined button and popup list for selecting options.
GLuint index
[2]
GLboolean r
[2]
GLuint name
GLdouble GLdouble t
Definition qopenglext.h:243
static bool match(const uchar *found, uint foundLen, const char *target, uint targetLen)
QLayoutItem * child
[0]
aWidget window() -> setWindowTitle("New Window Title")
[2]