QAccessibleEditableTextInterface 类实现对具有可编辑文本的对象的支持。 更多...
头: | #include <QAccessibleEditableTextInterface> |
CMake: |
find_package(Qt6 COMPONENTS Gui REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Gui) |
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 .
[virtual]
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 .