IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt 3D

Qt 3D Reference Documentation.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt 3D

Qt 3D 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 Qt 3D is divided into the following C++ modules:

The following C++ modules are in still development but are available as technology previews:

For Qt Quick applications, Qt 3D provides the following QML modules:

The following QML modules are in still development but are available as technology previews:

Getting Started

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

 
Sélectionnez
QT += 3dcore 3drender 3dinput 3dlogic 3dextras 3danimation

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

 
Sélectionnez
#include <Qt3DCore>
#include <Qt3DRender>
#include <Qt3DInput>
#include <Qt3DLogic>
#include <Qt3DExtras>
#include <Qt3DAnimation>

A Qt Quick application requires also additional dependencies:

 
Sélectionnez
QT += 3dcore 3drender 3dinput 3dlogic 3dextras qml quick 3dquick 3danimation

Overview

The high level design and motivation for Qt 3D is described in the Qt 3D Overview. The Qt 3D Render aspect offers support for data-driven configuration as described in Qt 3D Render Framegraph.

Reference

Qt 3D Platform Support

Qt 3D has the following support for platforms:

  • Microsoft Windows (win32) - Supported

  • Linux X11 - Supported

  • macOS - Supported although there may be some retina scaling issues

  • Android - Supported

  • Embedded Linux - Supported

  • iOS - Supported since (Qt 5.7)

  • WinRT - Not supported yet

Module Evolution

Changes to Qt3D lists important changes in the module API and functionality that were done for the Qt 6 series of Qt.

Licenses and Attributions

Qt 3D is available under commercial licenses from The Qt Company. In addition, it is available under the GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.

Furthermore Qt 3D contains third party modules under following permissive licenses:

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+