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 |
QString | m_oldText |
int | m_position |
QString | m_text |
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 for object 。文本更改发生在 position 在哪里 oldText 被移除和 text 插入代替。
构造新的 QAccessibleTextUpdateEvent for iface 。文本更改发生在 position 在哪里 oldText 被移除和 text 插入代替。
返回更改发生的位置。
返回插入文本。
返回移除文本。