- class QAccessibleEditableTextInterface#
QAccessibleEditableTextInterface类实现了对可编辑文本对象的支持。更多...概要#
虚拟方法#
def
deleteText()def
insertText()def
replaceText()
注意
此文档可能包含自动从 C++ 转换到 Python 的代码片段。我们始终欢迎对片段翻译的贡献。如果您发现翻译有问题,也可以通过在 https:/bugreports.qt.io/projects/PYSIDE 上创建工单来告诉我们。
详细描述#
在实现此接口时,您几乎肯定还想实现
QAccessibleTextInterface。另请参阅
- abstract deleteText(startOffset, endOffset)#
- 参数:
startOffset – int
endOffset – int
从
startOffset到endOffset删除文本。- 摘要 insertText(offset, text)#
- 参数:
offset – int
text – str
在位置
offset插入text。- 摘要 replaceText(startOffset, endOffset, text)#
- 参数:
startOffset – int
endOffset – int
text – str
从
startOffset到endOffset删除文本,并插入text。