summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qtestevent.qdoc
blob: 87591e04709477aad6fe9a2799ceb3c34d35d983 (plain)
1
2
3
4
5
6
7
8
9
10
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]