QAccessibleEditableTextInterface 类实现对具有可编辑文本的对象的支持。 更多...
头: | #include <QAccessibleEditableTextInterface> |
qmake: | QT += gui |
virtual | ~QAccessibleEditableTextInterface () |
virtual void | deleteText (int startOffset , int endOffset ) = 0 |
virtual void | insertText (int offset , const QString & text ) = 0 |
virtual void | replaceText (int startOffset , int endOffset , const QString & text ) = 0 |
在实现此接口时,几乎肯定还需要实现 QAccessibleTextInterface .
另请参阅 QAccessibleInterface .
[虚拟]
QAccessibleEditableTextInterface::
~QAccessibleEditableTextInterface
()
销毁 QAccessibleEditableTextInterface .
[pure virtual]
void
QAccessibleEditableTextInterface::
deleteText
(
int
startOffset
,
int
endOffset
)
删除文本从 startOffset to endOffset .
[pure virtual]
void
QAccessibleEditableTextInterface::
insertText
(
int
offset
, const
QString
&
text
)
插入 text 在位置 offset .
[pure virtual]
void
QAccessibleEditableTextInterface::
replaceText
(
int
startOffset
,
int
endOffset
, const
QString
&
text
)
移除文本从 startOffset to endOffset 并取而代之插入 text .