Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QTestEventList class provides a list of GUI events. More...
#include <QTestEventList>
Inherits QList<QTestEvent *>.
The QTestEventList class provides a list of GUI events.
QTestEventList inherits from QList<QTestEvent *>, and provides convenience functions for populating the list.
A QTestEventList can be populated with GUI events that can be stored as test data for later usage, or be replayed on any QWidget.
Example:
QTestEventList events; events.addKeyClick('a'); events.addKeyClick(Qt::Key_Backspace); events.addDelay(200); QLineEdit *lineEdit = new QLineEdit(myParent); ... events.simulate(lineEdit); events.simulate(lineEdit);
The example above simulates the user entering the character a followed by a backspace, waiting for 200 milliseconds and repeating it.
Constructs an empty QTestEventList.
Constructs a new QTestEventList as a copy of other.
Empties the list and destroys all stored events.
Adds a msecs milliseconds delay.
See also QTest::qWait().
Adds a new key click to the list. The event will simulate the key qtKey with the modifier modifiers and then wait for msecs milliseconds.
See also QTest::keyClick().
This is an overloaded member function, provided for convenience.
Adds a new key click to the list. The event will simulate the key ascii with the modifier modifiers and then wait for msecs milliseconds.
See also QTest::keyClick().
Adds new keyboard entries to the list. The event will press the keys with the modifiers and wait msecs milliseconds between each key.
See also QTest::keyClicks().
Adds a new key press to the list. The event will press the key qtKey with the modifier modifiers and then wait for msecs milliseconds.
See also QTest::keyPress().
This is an overloaded member function, provided for convenience.
Adds a new key press to the list. The event will press the key ascii with the modifier modifiers and then wait for msecs milliseconds.
See also QTest::keyPress().
Adds a new key release to the list. The event will release the key qtKey with the modifier modifiers and then wait for msecs milliseconds.
See also QTest::keyRelease().
This is an overloaded member function, provided for convenience.
Adds a new key release to the list. The event will release the key ascii with the modifier modifiers and then wait for msecs milliseconds.
See also QTest::keyRelease().
Add a mouse click to the list. The event will click the button with optional modifiers at the position pos with an optional delay. The default position is the center of the widget.
See also QTest::mouseClick().
Add a double mouse click to the list. The event will double click the button with optional modifiers at the position pos with an optional delay. The default position is the center of the widget.
See also QTest::mousePress().
Adds a mouse move to the list. The event will move the mouse to the position pos. If a delay (in milliseconds) is set, the test will wait after moving the mouse. The default position is the center of the widget.
See also QTest::mousePress().
Add a mouse press to the list. The event will press the button with optional modifiers at the position pos with an optional delay. The default position is the center of the widget.
See also QTest::mousePress().
Add a mouse release to the list. The event will release the button with optional modifiers at the position pos with an optional delay. The default position is the center of the widget.
See also QTest::mouseRelease().
Removes all events from the list.
Simulates the events from the list one by one on the widget w. For an example, please read the QTestEventList class documentation.
Copyright © 2006 Trolltech | Trademarks | Qt 4.1.3 |