QAccessibleTextRemoveEvent Class

QAccessibleTextRemoveEvent 类通知文本被删除。更多

头文件: #include <QAccessibleTextRemoveEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
继承: QAccessibleTextCursorEvent

公共函数

QAccessibleTextRemoveEvent(QAccessibleInterface *iface, int position, const QString &text)
QAccessibleTextRemoveEvent(QObject *object, int position, const QString &text)
int changePosition() const
QString textRemoved() const

详细说明

该类与QAccessible::updateAccessibility() 一起使用。

成员函数文档

QAccessibleTextRemoveEvent::QAccessibleTextRemoveEvent(QAccessibleInterface *iface, int position, const QString &text)

iface 构建一个新的 QAccessibleTextRemoveEvent 事件。text 已在position 删除。默认情况下,我们假定光标已移至position 。如果情况并非如此,则需要使用QAccessibleTextCursorEvent::setCursorPosition() 为该事件手动设置光标。

QAccessibleTextRemoveEvent::QAccessibleTextRemoveEvent(QObject *object, int position, const QString &text)

object 构建一个新的 QAccessibleTextRemoveEvent 事件。text 已在position 删除。默认情况下,我们假定光标已移至position 。如果情况并非如此,则需要使用QAccessibleTextCursorEvent::setCursorPosition() 为该事件手动设置光标。

int QAccessibleTextRemoveEvent::changePosition() const

返回删除文字的位置。

QString QAccessibleTextRemoveEvent::textRemoved() const

返回已删除的文本。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.