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 插入代替。
返迴更改發生的位置。
返迴插入文本。
返迴移除文本。