|  | Home

# QtStateSetPropertyAction Class Reference
[QtCore module]

The QtStateSetPropertyAction class provides a set property action for QObjects. More...

     #include <QtStateSetPropertyAction>

Inherits QtStateAction.

- List of all members, including inherited members

### Public Functions

- QtStateSetPropertyAction ( QObject * object, const char * name, const QVariant & value )
- ~QtStateSetPropertyAction ()
- QByteArray propertyName () const
- QObject * targetObject () const
- QVariant value () const

- 29 public functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QObject
- 1 protected function inherited from QtStateAction
- 7 protected functions inherited from QObject
- 2 protected variables inherited from QObject

## Detailed Description

The QtStateSetPropertyAction class provides a set property action for QObjects.

The QtStateSetPropertyAction class provides an action that sets a property of a QObject to a pre-defined value when a QtState is entered or exited. QtStateSetPropertyAction is part of The State Machine Framework.

Typically you don't construct QtStateSetPropertyAction objects directly, but rather call the QtState::setPropertyOnEntry() function or the QtState::setPropertyOnExit() function.

## Member Function Documentation

### QtStateSetPropertyAction::QtStateSetPropertyAction ( QObject * object, const char * name, const QVariant & value )

Constructs a new QtStateSetPropertyAction object for the property named name of the given object, with the given value.

### QtStateSetPropertyAction::~QtStateSetPropertyAction ()

Destroys this QtStateAbstractSetPropertyAction object.

### QByteArray QtStateSetPropertyAction::propertyName () const

Returns the name of the property set by this action.

### QObject * QtStateSetPropertyAction::targetObject () const

Returns the object for which this action sets a property.

### QVariant QtStateSetPropertyAction::value () const

Returns the value set by this action.