QtBase  v6.3.1
qaccessiblewidget.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2016 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the QtWidgets module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 3 requirements
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24 **
25 ** GNU General Public License Usage
26 ** Alternatively, this file may be used under the terms of the GNU
27 ** General Public License version 2.0 or (at your option) the GNU General
28 ** Public license version 3 or any later version approved by the KDE Free
29 ** Qt Foundation. The licenses are as published by the Free Software
30 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31 ** included in the packaging of this file. Please review the following
32 ** information to ensure the GNU General Public License requirements will
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
35 **
36 ** $QT_END_LICENSE$
37 **
38 ****************************************************************************/
39 
40 #ifndef QACCESSIBLEWIDGET_H
41 #define QACCESSIBLEWIDGET_H
42 
43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtGui/qaccessibleobject.h>
45 
47 
48 
49 #ifndef QT_NO_ACCESSIBILITY
50 
52 
53 class Q_WIDGETS_EXPORT QAccessibleWidget : public QAccessibleObject, public QAccessibleActionInterface
54 {
55 public:
57  bool isValid() const override;
58 
59  QWindow *window() const override;
60  int childCount() const override;
61  int indexOfChild(const QAccessibleInterface *child) const override;
63  relations(QAccessible::Relation match = QAccessible::AllRelations) const override;
64  QAccessibleInterface *focusChild() const override;
65 
66  QRect rect() const override;
67 
68  QAccessibleInterface *parent() const override;
69  QAccessibleInterface *child(int index) const override;
70 
71  QString text(QAccessible::Text t) const override;
72  QAccessible::Role role() const override;
73  QAccessible::State state() const override;
74 
75  QColor foregroundColor() const override;
76  QColor backgroundColor() const override;
77 
79 
80  // QAccessibleActionInterface
81  QStringList actionNames() const override;
82  void doAction(const QString &actionName) override;
83  QStringList keyBindingsForAction(const QString &actionName) const override;
84 protected:
86  QWidget *widget() const;
87  QObject *parentObject() const;
88 
89  void addControllingSignal(const QString &signal);
90 
91 private:
94 };
95 
96 
97 #endif // QT_NO_ACCESSIBILITY
98 
100 
101 #endif // QACCESSIBLEWIDGET_H
The QAccessibleActionInterface class implements support for invocable actions in the interface.
Definition: qaccessible.h:632
virtual QStringList keyBindingsForAction(const QString &actionName) const =0
virtual QStringList actionNames() const =0
virtual void doAction(const QString &actionName)=0
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
Definition: qaccessible.h:459
virtual int indexOfChild(const QAccessibleInterface *) const =0
virtual QAccessible::Role role() const =0
virtual void * interface_cast(QAccessible::InterfaceType)
Definition: qaccessible.h:518
virtual QList< QPair< QAccessibleInterface *, QAccessible::Relation > > relations(QAccessible::Relation match=QAccessible::AllRelations) const
virtual QColor foregroundColor() const
virtual int childCount() const =0
virtual QAccessibleInterface * focusChild() const
The QAccessibleObject class implements parts of the QAccessibleInterface for QObjects.
bool isValid() const override
The QAccessibleWidget class implements the QAccessibleInterface for QWidgets.
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition: qcolor.h:67
Definition: qlist.h:108
The QObject class is the base class of all Qt objects.
Definition: qobject.h:125
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:59
The QString class provides a Unicode character string.
Definition: qstring.h:388
The QStringList class provides a list of strings.
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:133
The QWindow class represents a window in the underlying windowing system.
Definition: qwindow.h:99
QOpenGLWidget * widget
[1]
auto signal
rect
[4]
else opt state
[0]
QColor backgroundColor(const QPalette &pal, const QWidget *widget)
#define QString()
Definition: parse-defines.h:51
#define Q_DISABLE_COPY(Class)
Definition: qglobal.h:515
@ text
GLboolean r
[2]
GLuint index
[2]
GLuint name
GLdouble GLdouble t
[9]
Definition: qopenglext.h:243
QLayoutItem * child
[0]
aWidget window() -> setWindowTitle("New Window Title")
[2]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent