QAccessibleTextInsertEvent 类通知正在插入文本。 更多...
头: | #include <QAccessibleTextInsertEvent> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
继承: | QAccessibleTextCursorEvent |
QAccessibleTextInsertEvent (QObject * object , int position , const QString & text ) | |
QAccessibleTextInsertEvent (QAccessibleInterface * iface , int position , const QString & text ) | |
int | changePosition () const |
QString | textInserted () const |
此类用于 QAccessible::updateAccessibility ().
Constructs a new QAccessibleTextInsertEvent event for object 。 text has been inserted at position . By default, it is assumed that the cursor has moved to the end of the selection. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition () 对于此事件而言。
Constructs a new QAccessibleTextInsertEvent event for iface . The text has been inserted at position .
Returns the position where the text was inserted.
Returns the text that has been inserted.