C

Examples

Included in Qt 3D Studio you will find a set of examples. These are located in the examples folder in the installation folder.

Instructions

To compile the examples or other Qml or C++ applications you also need to install Qt in addition to Qt 3D Studio. Binaries provided by Qt 3D Studio installer are compiled with Qt 5.10.1 and MSVC2015_64bit (win), clang_64 (macOS) and gcc 64bit (linux). For other combinations you need to compile Qt 3D Studio yourself from sources. In that case, refer to the build_instructions document available in the source code repository.

Extra setup steps after installing Qt 3D Studio and Qt 5.10.1:

  1. Copy <Qt 3D Studio installation directory>\Tools\Qt3DStudio\qml\QtStudio3D under <Qt installation directory>\5.10.1\<compiler>\qml (e.g. C:\Qt\5.10.1\msvc2015_64\qml).
  2. Open the application's .pro file in Qt Creator.
  3. Add <Qt 3D Studio installation directory>\Tools\Qt3DStudio\bin to the end of the PATH variable in the Run Environment for the build. See http://doc.qt.io/qtcreator/creator-build-settings.html#using-environment-variables for details on how to set environment variables.

The last three steps are only needed for C++ applications:

  1. Copy <Qt 3D Studio installation directory>\Tools\Qt3DStudio\include\QtStudio3D under <Qt installation directory>\5.10.1\<compiler>\include (e.g. C:\Qt\5.10.1\msvc2015_64\include).
  2. Copy qt_lib_studio3d.pri and qt_lib_studio3d_private.pri from <Qt 3D Studio installation directory>\Tools\Qt3DStudio\mkspecs\modules to <Qt installation directory>\5.10.1\<compiler>\mkspecs\modules (e.g. C:\Qt\5.10.1\msvc2015_64\mkspecs\modules).
  3. Open the application's .pro file in Qt Creator and add LIBS += -L<Qt 3D Studio installation directory>/Tools/Qt3DStudio/lib Qt5Studio3D$$qtPlatformTargetSuffix() to your application’s .pro file.

QML Examples

More Examples

You can find more examples from https://git.qt.io/public-demos/qt3dstudio , these examples are more visually appealing and suitable to use as for example demos.

Available under certain Qt licenses.
Find out more.