Qt3D Module

Qt3D provides functionality for near-realtime simulation systems with support for 2D and 3D rendering in both Qt C++ and Qt Quick applications.

The functionality in Qt3D is divided into the following C++ modules:

Qt3DCore

Qt3D Core module contains functionality to support near-realtime simulation systems

Qt3DInput

Qt3D Input module provides classes for handling user input in applications using Qt3D

Qt3DRenderer

Qt3D Renderer module contains functionality to support 2D and 3D rendering using Qt3D

Classes, types and functions are declared under the Qt3D namespace.

For Qt Quick applications, Qt3D provides the following QML modules:

Qt3D

Provides core Qt3D QML types

Qt3D.Input

Provides QML types for Qt3D user input

Qt3D.Renderer

Provides Qt3D QML types for rendering

Getting Started

For a C++ application that performs 2D or 3D rendering and also handles user input, add the following line to your qmake .pro file:

QT += 3dcore 3drenderer 3dinput

To include the definitions of the modules' classes, use the following directives:

#include <Qt3DCore>
#include <Qt3DRenderer>
#include <Qt3DInput>

A Qt Quick application requires also additional dependencies:

QT += 3dcore 3drenderer 3dinput qml quick 3dquick

Overview

The high level design and motivation for Qt3D is described in the Qt3D Overview. The Qt3D Renderer aspect offers support for data-driven configuration as described in Qt3D Renderer Framegraph.

Reference

Qt3D Platform Support

In this Technology Preview Qt3D has the following support for platforms:

  • Microsoft Windows (win32) - Supported
  • Linux X11 - Supported
  • OS X - Supported although there may be some retina scaling issues
  • Android - Supported
  • Embedded Linux - Supported
  • iOS - Not supported yet (coming in Qt 5.6)
  • WinRT - Not supported yet
  • Windows CE - Compiles but not tested

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.