QScxmlNullDataModel Class | Qt SCXML 5.7

Qt 5.7 | Qt SCXML | C++ Classes | QScxmlNullDataModel

Qt 5.7.1 Reference Documentation

# QScxmlNullDataModel Class

The QScxmlNullDataModel class is the null data model for a Qt SCXML stateMachine More...

Header: | #include <QScxmlNullDataModel>
qmake: | QT += scxml
Since: | Qt 5.7
Inherits: | QScxmlDataModel

- List of all members, including inherited members

## Public Functions

| QScxmlNullDataModel(QObject *parent = nullptr)

## Reimplemented Public Functions

virtual bool | hasScxmlProperty(const QString &name) const
virtual QVariant | scxmlProperty(const QString &name) const
virtual void | setScxmlEvent(const QScxmlEvent &event)
virtual bool | setScxmlProperty(const QString &name, const QVariant &value, const QString &context)
virtual bool | setup(const QVariantMap &initialDataValues)

- 7 public functions inherited from QScxmlDataModel

### Additional Inherited Members

- 1 property inherited from QScxmlDataModel
- 1 signal inherited from QScxmlDataModel

## Detailed Description

The QScxmlNullDataModel class is the null data model for a Qt SCXML stateMachine

This class implements the null data model as described in the SCXML Specification - B.1 The Null Data Model. Using the value `"null"` for the datamodel attribute of the `<scxml>` element means that there is no underlying data model.

See also QScxmlStateMachine and QScxmlDataModel.

## Member Function Documentation

### QScxmlNullDataModel::QScxmlNullDataModel(QObject *parent = nullptr)

Creates a new Qt SCXML data model, with the parent object parent.

### `[virtual]` bool QScxmlNullDataModel::hasScxmlProperty(const QString &name) const

Reimplemented from QScxmlDataModel::hasScxmlProperty().

Returns `false`, because the null data model does not support properties.

### `[virtual]` QVariant QScxmlNullDataModel::scxmlProperty(const QString &name) const

Reimplemented from QScxmlDataModel::scxmlProperty().

Returns an invalid variant, because the null data model does not support properties.

See also setScxmlProperty().

### `[virtual]` void QScxmlNullDataModel::setScxmlEvent(const QScxmlEvent &event)

Reimplemented from QScxmlDataModel::setScxmlEvent().

### `[virtual]` bool QScxmlNullDataModel::setScxmlProperty(const QString &name, const QVariant &value, const QString &context)

Reimplemented from QScxmlDataModel::setScxmlProperty().

Returns `false`, because the null data model does not support properties.

See also scxmlProperty().

### `[virtual]` bool QScxmlNullDataModel::setup(const QVariantMap &initialDataValues)

Reimplemented from QScxmlDataModel::setup().