C

Q3DSDataInput Class

Control class for data inputs in a Qt 3D Studio presentation. More...

Header: #include <q3dsdatainput.h>
Since: QtStudio3D 1.1
Inherits: QObject

Properties

  • 1 property inherited from QObject

Public Functions

Q3DSDataInput(QObject *parent = nullptr)
Q3DSDataInput(const QString &name, QObject *parent = nullptr)
Q3DSDataInput(Q3DSPresentation *presentation, const QString &name, QObject *parent = nullptr)
virtual ~Q3DSDataInput()
QString name() const
QVariant value() const
  • 32 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()

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

Control class for data inputs 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 the data input is registered to a presentation.

Access functions:

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

Notifier signal:

void nameChanged()

See also Q3DSPresentation::registerDataInput().

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 presentation scripting, 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(QObject *parent = nullptr)

Default constructs an instance of Q3DSDataInput.

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

Constructs a Q3DSDataInput instance and initializes the name. An optional parent object can be specified.

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

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

[virtual] Q3DSDataInput::~Q3DSDataInput()

Destroys the instance of Q3DSDataInput. The destructor is virtual.

Available under certain Qt licenses.
Find out more.