QTest::QTouchEventWidgetSequence Class
class QTest::QTouchEventWidgetSequenceThe QTouchEventWidgetSequence class is used to simulate a sequence of touch events for a widget. More...
| Header: | #include <QTouchEventWidgetSequence> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Test)target_link_libraries(mytarget PRIVATE Qt6::Test) |
| qmake: | QT += testlib |
| Inherits: | QTest::QTouchEventSequence |
Detailed Description
To simulate a sequence of touch events on a widget, call QTest::touchEvent() with a pointer to a QWidget instance. Add touch events to the returned QTouchEventWidgetSequence object by calling press(), move(), release() and stationary(), and let the instance run out of scope to commit the sequence to the event system.