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

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

The CheckWidget class provides an abstract base class for all test widgets which support 'checked' and 'unchecked' states. More...

This class is under development and is subject to change.

Public Functions

Signals


Detailed Description

The CheckWidget class provides an abstract base class for all test widgets which support 'checked' and 'unchecked' states.

QtUiTest::CheckWidget exposes the current check state of widgets which can be checked or unchecked.

Examples of widgets suitable for this interface include QCheckBox and QAbstractButton.


Member Function Documentation

Qt::CheckState CheckWidget::checkState () const   [pure virtual]

Returns the current check state of this widget.

See also QCheckBox::checkState() and setCheckState().

bool CheckWidget::isTristate () const   [virtual]

Returns true if this widget has three possible states, i.e. the widget can be in state Qt::PartiallyChecked.

The base implementation returns false.

See also QCheckBox::isTristate().

bool CheckWidget::setCheckState ( Qt::CheckState state )   [virtual]

Simulates the user input necessary to set the current check state to state, returning true on success.

The default implementation does nothing and returns false.

See also QCheckBox::setCheckState() and checkState().

void CheckWidget::stateChanged ( int state )   [signal]

This signal is emitted when the check state of this widget changes to state. state is compatible with Qt::CheckState.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3