summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qtestevent.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/code/doc_src_qtestevent.qdoc')
-rw-r--r--doc/src/snippets/code/doc_src_qtestevent.qdoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/snippets/code/doc_src_qtestevent.qdoc b/doc/src/snippets/code/doc_src_qtestevent.qdoc
new file mode 100644
index 0000000..87591e0
--- /dev/null
+++ b/doc/src/snippets/code/doc_src_qtestevent.qdoc
@@ -0,0 +1,11 @@
+//! [0]
+QTestEventList events;
+events.addKeyClick('a');
+events.addKeyClick(Qt::Key_Backspace);
+events.addDelay(200);
+
+QLineEdit *lineEdit = new QLineEdit(myParent);
+...
+events.simulate(lineEdit);
+events.simulate(lineEdit);
+//! [0]