Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
doc_src_qtestevent.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
#
include
<
QTest
>
5
#
include
<
QLineEdit
>
6
7
#
include
"doc_src_qtestevent.h"
8
9
void
TestGui
::testGui_data()
10
{
11
QWidget *myParent =
nullptr
;
12
//! [0]
13
QTestEventList events;
14
events.addKeyClick(
'a'
);
15
events.addKeyClick(Qt::Key_Backspace);
16
events.addDelay(200);
17
QLineEdit *lineEdit =
new
QLineEdit(myParent);
18
// ...
19
events.simulate(lineEdit);
20
events.simulate(lineEdit);
21
//! [0]
22
}
TestGui
Definition
doc_src_qtestevent.h:7
qtbase
src
testlib
doc
snippets
code
doc_src_qtestevent.cpp
Generated on
for Qt by
1.14.0