QAccessibleTextSelectionEvent 类

QAccessibleTextSelectionEvent signals a change in the text selection of an object. 更多...

头: #include <QAccessibleTextSelectionEvent>
qmake: QT += gui
继承: QAccessibleTextCursorEvent

公共函数

QAccessibleTextSelectionEvent (QObject * object , int start , int end )
QAccessibleTextSelectionEvent (QAccessibleInterface * iface , int start , int end )
int selectionEnd () const
int selectionStart () const
void setSelection (int start , int end )

保护变量

int m_selectionEnd
int m_selectionStart

详细描述

QAccessibleTextSelectionEvent signals a change in the text selection of an object.

此类用于 QAccessible::updateAccessibility ().

成员函数文档编制

QAccessibleTextSelectionEvent:: QAccessibleTextSelectionEvent ( QObject * object , int start , int end )

构造新的 QAccessibleTextSelectionEvent for object 。此事件通知新选定即将从位置 start to end .

QAccessibleTextSelectionEvent:: QAccessibleTextSelectionEvent ( QAccessibleInterface * iface , int start , int end )

构造新的 QAccessibleTextSelectionEvent for iface 。此事件通知新选定即将从位置 start to end .

int QAccessibleTextSelectionEvent:: selectionEnd () const

返回最后选中字符的位置。

int QAccessibleTextSelectionEvent:: selectionStart () const

返回第一选中字符的位置。

void QAccessibleTextSelectionEvent:: setSelection ( int start , int end )

设置用于此事件的选定从位置 start to end .