Q3DSDataInput Class | Qt 3D Studio Runtime 2.0

Qt 3D Studio Runtime | C++ Classes | Q3DSDataInput

Qt 3D Studio Runtime 2.0 Manual

# Q3DSDataInput Class

Controls a data input entry in a Qt 3D Studio presentation. More...

Header: | #include <Q3DSDataInput>
Since: | Qt 3D Studio 2.0
Instantiated By: | DataInput
Inherits: | QObject

- List of all members, including inherited members

## Properties

- name : QString
- value : QVariant

- 1 property inherited from QObject

## Public Functions

| Q3DSDataInput(Q3DSPresentation *presentation, const QString &name, QObject *parent = nullptr)
virtual | ~Q3DSDataInput()
QString | name() const
QVariant | value() const

- 34 public functions inherited from QObject

## Public Slots

void | setName(const QString &name)
void | setValue(const QVariant &value)

- 1 public slot inherited from QObject

## Signals

void | nameChanged()
void | valueChanged()

- 2 signals inherited from QObject

### Additional Inherited Members

- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject

## Detailed Description

Controls a data input entry in a Qt 3D Studio presentation.

This class is a convenience class for controlling a data input in a presentation.

See also Q3DSPresentation.

## Property Documentation

### name : QString

Specifies the name of the controlled data input element in the presentation. This property must be set before setting the value property. The initial value is provided via the constructor in practice, but the name can also be changed later on, if desired.

Access functions:

QString | name() const
void | setName(const QString &name)

Notifier signal:

void | nameChanged()

### value : QVariant

Specifies the value of the controlled data input element in the presentation.

The value of this property only accounts for changes done via the same Q3DSDataInput instance. If the value of the same data input in the presentation is changed elsewhere, for example via animations or Q3DSPresentation::setAttribute(), those changes are not reflected in the value of this property. Due to this uncertainty, this property treats all value sets as changes even if the newly set value is the same value as the previous value.

Access functions:

QVariant | value() const
void | setValue(const QVariant &value)

Notifier signal:

void | valueChanged()

## Member Function Documentation

### Q3DSDataInput::Q3DSDataInput(Q3DSPresentation *presentation, const QString &name, QObject *parent = nullptr)

Constructs a Q3DSDataInput instance and initializes the name. The constructed instance is automatically associated with the specified presentation. An optional parent object can be specified.

### `[virtual]` Q3DSDataInput::~Q3DSDataInput()

Destructor.