Qt 3D Studio Runtime: Simple Widget Example | Qt 3D Studio Runtime 2.0

Qt 3D Studio Runtime | Qt 3D Studio Runtime: Simple Widget Example

Qt 3D Studio Runtime 2.0 Manual

# Qt 3D Studio Runtime: Simple Widget Example

This example demonstrates basic usage of the Q3DSWidget class

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

## Description

This example consists of a simple widget UI that includes a Q3DSWidget. This QOpenGLWidget subclass displays and controls Qt 3D Studio presentations. Changing the value of a text node via data input, basic error handling, and the means of reloading or opening presentations, as well as toggling the in-scene profiling pane are also demonstrated.

Files:

- simplewidget/main.cpp
- simplewidget/simplewidget.pro
- simplewidget/simplewidget.qrc

Images:

- simplewidget/presentation/maps/materials/shadow.png
- simplewidget/presentation/maps/materials/spherical_checker.png
- simplewidget/presentation/models/Speedometer/maps/Speed.png