Qt 4.8
|
The QAccessibleEvent class is used to query addition accessibility information about complex widgets. More...
#include <qaccessible.h>
Public Functions | |
int | child () const |
Returns the (1-based) index of the child to which the request applies. More... | |
QAccessibleEvent (Type type, int child) | |
Constructs an accessibility event of the given type, which must be QEvent::AccessibilityDescription or QEvent::AccessibilityHelp. More... | |
void | setValue (const QString &aText) |
Set the description or help text for the given child() to text, thereby answering the request. More... | |
QString | value () const |
Returns the text set using setValue(). More... | |
Public Functions inherited from QEvent | |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
bool | isAccepted () const |
QEvent (Type type) | |
Contructs an event object of type type. More... | |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
Type | type () const |
Returns the event type. More... | |
virtual | ~QEvent () |
Destroys the event. More... | |
Properties | |
int | c |
QString | val |
The QAccessibleEvent class is used to query addition accessibility information about complex widgets.
The event can be of type QEvent::AccessibilityDescription or QEvent::AccessibilityHelp.
Some QAccessibleInterface implementations send QAccessibleEvents to the widget they wrap to obtain the description or help text of a widget or of its children. The widget can answer by calling setValue() with the requested information.
The default QWidget::event() implementation simply sets the text to be the widget's tooltip (for AccessibilityDescription event) or its QWidget::whatsThisWhat's This?" text" (for AccessibilityHelp event).
Definition at line 449 of file qaccessible.h.
|
inline |
Constructs an accessibility event of the given type, which must be QEvent::AccessibilityDescription or QEvent::AccessibilityHelp.
child is the (1-based) index of the child to which the request applies. If child is 0, the request is for the widget itself.
Definition at line 462 of file qaccessible.h.
|
inline |
Returns the (1-based) index of the child to which the request applies.
If the child is 0, the request is for the widget itself.
Definition at line 453 of file qaccessible.h.
Referenced by QWidget::event().
|
inline |
Set the description or help text for the given child() to text, thereby answering the request.
Definition at line 455 of file qaccessible.h.
Referenced by QWidget::event().
|
inline |
Returns the text set using setValue().
Definition at line 454 of file qaccessible.h.
|
private |
Definition at line 458 of file qaccessible.h.
|
private |
Definition at line 459 of file qaccessible.h.