Qt 3D Studio OpenGL Runtime C++ Classes

The Qt 3D Studio OpenGL Runtime provides a number of C++ classes to integrate and control Qt 3D Studio presentations in Qt applications. More...

Detailed Description

To include the definitions of the module's classes, use the following directive:

 #include <QtStudio3D>

To link against the module, add this line to your qmake .pro file:

 QT += studio3d

Integrating

The main class is Q3DSSurfaceViewer. Q3DSSurfaceViewer allows targeting a QWindow or an offscreen render target (an OpenGL texture).

Note: Qt applications based on QML and Qt Quick will rather want to use the Studio3D type from Qt 3D Studio OpenGL Runtime QML Types.

Controlling

Each Q3DSSurfaceViewer instance exposes a Q3DSPresentation. This, possibly in combination with Q3DSDataInput or Q3DSElement objects, allows:

  • changing scene object properties (for example, the transform of a model, colors and other settings of a material, etc.),
  • changing slides (thus starting the relevant animations and applying the scene object property changes associated with the new slide),
  • and controlling the timeline (the current playback position for the key-frame based animations) both on the main scene and on individual Component nodes.

Classes