4#ifndef QACCESSIBLEWIDGET_H
5#define QACCESSIBLEWIDGET_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qaccessibleobject.h>
13#if QT_CONFIG(accessibility)
15class QAccessibleWidgetPrivate;
17class Q_WIDGETS_EXPORT QAccessibleWidget :
public QAccessibleObject,
public QAccessibleActionInterface
21 bool isValid()
const override;
24 int childCount()
const override;
25 int indexOfChild(
const QAccessibleInterface *
child)
const override;
27 relations(QAccessible::Relation
match = QAccessible::AllRelations)
const override;
28 QAccessibleInterface *focusChild()
const override;
32 QAccessibleInterface *
parent()
const override;
33 QAccessibleInterface *
child(
int index)
const override;
36 QAccessible::Role role()
const override;
39 QColor foregroundColor()
const override;
42 void *interface_cast(QAccessible::InterfaceType
t)
override;
46 void doAction(
const QString &actionName)
override;
56 QAccessibleWidgetPrivate *
d;
57 Q_DISABLE_COPY(QAccessibleWidget)
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QColor backgroundColor(const QPalette &pal, const QWidget *widget)
Combined button and popup list for selecting options.
static bool match(const uchar *found, uint foundLen, const char *target, uint targetLen)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent