Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QtUiTestRecorder Class Reference
[QtUiTestModule]

The QtUiTestRecorder class provides an interface for observing application-wide high level user actions. More...

    #include <QtUiTestRecorder>

This class is under development and is subject to change.

Inherits QObject.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QtUiTestRecorder class provides an interface for observing application-wide high level user actions.

QtUiTestRecorder aggregates the signals declared in the QtUiTest widget interfaces to provide a single object capable of watching for user input.

Note that using this class is expensive because it involves watching for signals on a large number of objects. When you create a QtUiTestRecorder and connect to its signals, this will result in every existing widget being wrapped in a test widget. To avoid this, do not connect to the signals of a QtUiTestRecorder unless you will definitely use the result.


Member Function Documentation

QtUiTestRecorder::QtUiTestRecorder ( QObject * parent = 0 )

Constructs a QtUiTestRecorder with the given parent.

QtUiTestRecorder::~QtUiTestRecorder ()

Destroys the QtUiTestRecorder.

void QtUiTestRecorder::activated ( QObject * widget )   [signal]

Emitted when widget is activated by any means.

In this context, "activated" means, for example, clicking a button.

See also QtUiTest::ActivateWidget::activated().

void QtUiTestRecorder::entered ( QObject * widget, QVariant const & item )   [signal]

Emitted when item is entered into widget.

See also QtUiTest::InputWidget::entered().

void QtUiTestRecorder::gotFocus ( QObject * widget )   [signal]

Emitted when widget obtains focus by any means.

See also QtUiTest::Widget::gotFocus().

void QtUiTestRecorder::keyEvent ( int key, int modifiers, bool isPress, bool isAutoRepeat )   [signal]

Emitted when key (with modifiers) is pressed or released.

key is compatible with Qt::Key and modifiers is compatible with Qt::KeyboardModifiers.

If the event is a press isPress is true, otherwise it is a release. isAutoRepeat is true if the event is generated due to autorepeat.

This signal is only emitted within the server process, because individual applications cannot monitor system-wide key events.

void QtUiTestRecorder::mouseEvent ( int x, int y, int state )   [signal]

Emitted when the mouse changes state.

x and y are the global co-ordinates of the event. state is the current state of the mouse buttons, compatible with Qt::MouseButtons.

This signal is only emitted within the server process, because individual applications cannot monitor system-wide mouse events.

void QtUiTestRecorder::selected ( QObject * widget, QString const & item )   [signal]

Emitted when item is selected from widget.

See also QtUiTest::SelectWidget::selected().

void QtUiTestRecorder::stateChanged ( QObject * widget, int state )   [signal]

Emitted when the check state changes to state in widget.

See also QtUiTest::CheckWidget::stateChanged().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3