QAccessibleWidget Class | Qt Widgets 5.6

Qt 5.6 | Qt Widgets | C++ Classes | QAccessibleWidget

Qt 5.6.2 Reference Documentation

# QAccessibleWidget Class

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets. More...

Header: | #include <QAccessibleWidget>
qmake: | QT += widgets

- List of all members, including inherited members

## Public Functions

| QAccessibleWidget(QWidget *w, QAccessible::Role role = QAccessible::Client, const QString &name = QString())
QStringList | actionNames() const
QColor | backgroundColor() const
QAccessibleInterface * | child(int index) const
int | childCount() const
void | doAction(const QString &actionName)
QAccessibleInterface * | focusChild() const
QColor | foregroundColor() const
int | indexOfChild(const QAccessibleInterface *child) const
void * | interface_cast(QAccessible::InterfaceType t)
bool | isValid() const
QStringList | keyBindingsForAction(const QString &actionName) const
QAccessibleInterface * | parent() const
QRect | rect() const
QVector<QPair<QAccessibleInterface *, QAccessible::Relation> > | relations(QAccessible::Relation match = QAccessible::AllRelations) const
QAccessible::Role | role() const
QAccessible::State | state() const
QString | text(QAccessible::Text t) const
QWindow * | window() const

## Protected Functions

| ~QAccessibleWidget()
void | addControllingSignal(const QString &signal)
QObject * | parentObject() const
QWidget * | widget() const

## Detailed Description

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets.

This class is part of Accessibility for QWidget Applications.

This class is convenient to use as a base class for custom implementations of QAccessibleInterfaces that provide information about widget objects.

The class provides functions to retrieve the parentObject() (the widget's parent widget), and the associated widget(). Controlling signals can be added with addControllingSignal(), and setters are provided for various aspects of the interface implementation, for example setValue(), setDescription(), setAccelerator(), and setHelp().

See also QAccessible and QAccessibleObject.

## Member Function Documentation

### QAccessibleWidget::QAccessibleWidget(QWidget *w, QAccessible::Role role = QAccessible::Client, const QString &name = QString())

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

### `[protected]` QAccessibleWidget::~QAccessibleWidget()

Destroys this object.

### QStringList QAccessibleWidget::actionNames() const

### `[protected]` void QAccessibleWidget::addControllingSignal(const QString &signal)

Registers signal as a controlling signal.

An object is a Controller to any other object connected to a controlling signal.

### QColor QAccessibleWidget::backgroundColor() const

### QAccessibleInterface *QAccessibleWidget::child(int index) const

### int QAccessibleWidget::childCount() const

### void QAccessibleWidget::doAction(const QString &actionName)

### QAccessibleInterface *QAccessibleWidget::focusChild() const

### QColor QAccessibleWidget::foregroundColor() const

### int QAccessibleWidget::indexOfChild(const QAccessibleInterface *child) const

### void *QAccessibleWidget::interface_cast(QAccessible::InterfaceType t)

### bool QAccessibleWidget::isValid() const

### QStringList QAccessibleWidget::keyBindingsForAction(const QString &actionName) const

### QAccessibleInterface *QAccessibleWidget::parent() const

### `[protected]` QObject *QAccessibleWidget::parentObject() const

Returns the associated widget's parent object, which is either the parent widget, or qApp for top-level widgets.

### QRect QAccessibleWidget::rect() const

### QVector<QPair<QAccessibleInterface *, QAccessible::Relation> > QAccessibleWidget::relations(QAccessible::Relation match = QAccessible::AllRelations) const

### QAccessible::Role QAccessibleWidget::role() const

### QAccessible::State QAccessibleWidget::state() const

### QString QAccessibleWidget::text(QAccessible::Text t) const

### `[protected]` QWidget *QAccessibleWidget::widget() const

Returns the associated widget.

### QWindow *QAccessibleWidget::window() const