Qt:Документация 4.3.2/qaccessibleevent

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QAccessibleEvent Class Reference
[модуль QtGui ]

The QAccessibleEvent class is used to query addition accessibility information about complex widgets. More...

 #include <QAccessibleEvent>

Inherits QEvent.

[править] Открытые функции

  • 6 открытых функций унаследованных от QEvent

[править] Дополнительные унаследованные члены

  • 1 свойство унаследованное от QEvent

[править] Подробное описание

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 "What's This?" text (for AccessibilityHelp event).


[править] Описание функций-членов

[править]
QAccessibleEvent::QAccessibleEvent ( Type type, int child )

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.

See also child().

[править]
int QAccessibleEvent::child () const

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.

[править]
void QAccessibleEvent::setValue ( const QString & text )

Set the description or help text for the given child() to text, thereby answering the request.

See also value().

[править]
QString QAccessibleEvent::value () const

Returns the text set using setValue().

See also setValue().


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2