QAccessibleTextUpdateEvent Class

The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors. 更多...

头文件: #include <QAccessibleTextUpdateEvent>
qmake: QT += gui
基类: QAccessibleTextCursorEvent

公有函数

QAccessibleTextUpdateEvent(QObject *object, int position, const QString &oldText, const QString &text)
QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text)
int changePosition() const
QString textInserted() const
QString textRemoved() const

详细描述

The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors.

This class is used with QAccessible::updateAccessibility().

成员函数

QAccessibleTextUpdateEvent::QAccessibleTextUpdateEvent(QObject *object, int position, const QString &oldText, const QString &text)

Constructs a new QAccessibleTextUpdateEvent for object. The text change takes place at position where the oldText was removed and text inserted instead.

QAccessibleTextUpdateEvent::QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text)

Constructs a new QAccessibleTextUpdateEvent for iface. The text change takes place at position where the oldText was removed and text inserted instead.

int QAccessibleTextUpdateEvent::changePosition() const

Returns where the change took place.

QString QAccessibleTextUpdateEvent::textInserted() const

Returns the inserted text.

QString QAccessibleTextUpdateEvent::textRemoved() const

Returns the removed text.