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

ActivateWidget Class Reference
(QtUiTest::ActivateWidget)
[QtUiTestModule]

The ActivateWidget class provides an abstract base class for all test widgets which can conceptually be "activated" by a user. More...

    #include <QtUiTest>

This class is under development and is subject to change.

Public Functions

Signals


Detailed Description

The ActivateWidget class provides an abstract base class for all test widgets which can conceptually be "activated" by a user.

"Activation" occurs when user input causes an action, possibly non-reversible, on a widget which exists solely for the purpose of causing that action.

Examples of widgets suitable for this interface include QAbstractButton.


Member Function Documentation

bool ActivateWidget::activate ()   [pure virtual]

Simulate the user input necessary to activate this widget.

Returns true if this widget was successfully activated.

For example, a button would reimplement this function to simulate a click on itself, or to navigate to itself and hit the "Select" key.

void ActivateWidget::activated ()   [signal]

This signal is emitted when this widget is activated.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3