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

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

Qt 3D Studio Runtime 2.0 Manual

# Qt 3D Studio Runtime: Simple Window Example

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:

- simplewindow/main.cpp
- simplewindow/simplewindow.pro
- simplewindow/simplewindow.qrc
- simplewindow/window_autoupdate.cpp
- simplewindow/window_autoupdate.h
- simplewindow/window_manualupdate.cpp
- simplewindow/window_manualupdate.h