C
Qt 3D Studio Runtime: Simple Window Example
Demonstrates using the Q3DSSurfaceViewer class in order to render in a QWindow.
This example demonstrates basic usage of the Q3DSSurfaceViewer 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 an OpenGL-based QWindow. The contents is provided by a Q3DSSurfaceViewer instance by loading up a simple Qt 3D Studio presentation.
When targeting a QWindow, the application can choose whether it wants to be in control of updates (i.e. manually requesting the next frame by calling Q3DSSurfaceViewer::update()). By passing the --multi
command-line argument the example demonstrates both types of usages.
Files:
Available under certain Qt licenses.
Find out more.