QAccessibleTextUpdateEvent 类

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.

此类用于 QAccessible::updateAccessibility ().

成员函数文档编制

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

构造新的 QAccessibleTextUpdateEvent for object 。文本更改发生在 position 在哪里 oldText 被移除和 text 插入代替。

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

构造新的 QAccessibleTextUpdateEvent for iface 。文本更改发生在 position 在哪里 oldText 被移除和 text 插入代替。

int QAccessibleTextUpdateEvent:: changePosition () const

返回更改发生的位置。

QString QAccessibleTextUpdateEvent:: textInserted () const

返回插入文本。

QString QAccessibleTextUpdateEvent:: textRemoved () const

返回移除文本。