C
Q3DSElement Class
Control class for elements in a Qt 3D Studio presentation. More...
Header: | #include <q3dselement.h> |
Inherits: | QObject |
Inherited By: |
Properties
- elementPath : QString
- 1 property inherited from QObject
Public Functions
Q3DSElement(QObject *parent = nullptr) | |
Q3DSElement(const QString &elementPath, QObject *parent = nullptr) | |
Q3DSElement(Q3DSPresentation *presentation, const QString &elementPath, QObject *parent = nullptr) | |
virtual | ~Q3DSElement() |
QString | elementPath() const |
- 32 public functions inherited from QObject
Public Slots
void | fireEvent(const QString &eventName) |
void | setAttribute(const QString &attributeName, const QVariant &value) |
void | setElementPath(const QString &elementPath) |
- 1 public slot inherited from QObject
Signals
void | elementPathChanged(const QString &elementPath) |
- 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
Control class for elements in a Qt 3D Studio presentation.
This class is a convenience class for managing a presentation element.
See also Q3DSPresentation, Q3DSWidget, Q3DSSurfaceViewer, and Q3DSSceneElement.
Property Documentation
elementPath : QString
Holds the element path of the presentation element. This property must be set before the element is registered to a presentation. You can specify an element of a sub-presentation by adding "SubPresentationId:" in front of the element path, for example "SubPresentationOne:Scene"
.
Access functions:
QString | elementPath() const |
void | setElementPath(const QString &elementPath) |
Notifier signal:
void | elementPathChanged(const QString &elementPath) |
See also Q3DSPresentation::registerElement().
Member Function Documentation
Q3DSElement::Q3DSElement(QObject *parent = nullptr)
Default constructs an instance of Q3DSElement.
Q3DSElement::Q3DSElement(const QString &elementPath, QObject *parent = nullptr)
Constructs a Q3DSElement instance and initializes the elementPath. An optional parent object can be specified.
Q3DSElement::Q3DSElement(Q3DSPresentation *presentation, const QString &elementPath, QObject *parent = nullptr)
Constructs a Q3DSElement instance and initializes the elementPath. The constructed instance is automatically registered for the presentation. An optional parent object can be specified.
[virtual]
Q3DSElement::~Q3DSElement()
Destroys the instance of Q3DSElement. The destructor is virtual.
[slot]
void Q3DSElement::fireEvent(const QString &eventName)
Dispatches an event with eventName on the element specified by this instance. Appropriate actions created in Qt 3D Studio or callbacks registered using the registerForEvent() method in attached scripts will be executed in response to the event.
[slot]
void Q3DSElement::setAttribute(const QString &attributeName, const QVariant &value)
Sets the value of an attribute on the element specified by this instance. The attributeName is the scripting name of the attribute.
The attribute must be preserved for scripting to be set by this function, or else it will fail. An attribute is preserved if it is either animated, or an attribute on a master element that is unlinked and changed per-slide.
Available under certain Qt licenses.
Find out more.