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

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

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