QAccessibleTextInsertEvent Class
QAccessibleTextInsertEvent 类通知插入文本。更多
头文件: | #include <QAccessibleTextInsertEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
继承: | QAccessibleTextCursorEvent |
- 所有成员(包括继承成员)的列表
- QAccessibleTextInsertEvent 属于辅助功能类。
公共函数
QAccessibleTextInsertEvent(QAccessibleInterface *iface, int position, const QString &text) | |
QAccessibleTextInsertEvent(QObject *object, int position, const QString &text) | |
int | changePosition() const |
QString | textInserted() const |
详细说明
该类与QAccessible::updateAccessibility() 一起使用。
成员函数文档
QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QAccessibleInterface *iface, int position, const QString &text)
为iface 构建一个新的 QAccessibleTextInsertEvent 事件。text 已在position 插入。
QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QObject *object, int position, const QString &text)
为object 构建一个新的 QAccessibleTextInsertEvent 事件。text 已在position 插入。默认情况下,光标会移动到选区的末尾。如果情况并非如此,则需要使用QAccessibleTextCursorEvent::setCursorPosition() 为该事件手动设置光标。
int QAccessibleTextInsertEvent::changePosition() const
返回插入文本的位置。
QString QAccessibleTextInsertEvent::textInserted() 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.