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

Qt 3D: Scene3D QML with Widgets Example

A https://-based application with a QML scene containing a 3D scene.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt 3D: Scene3D QML with Widgets Example▲

Image non disponible

widgets-scene3D demonstrates visualizing a 3D scene from a https://-based application using https://.

The actual 3D scene is the same as in the scene3d example.

This approach is different from the one based on https://() demonstrated in basicshapes-cpp because it does not create a native window for the Qt 3D content. Rather, it uses https://, a genuine https:// subclass to compose the Qt Quick and Qt 3D content together with the traditional widgets.

Be aware of the performance implications. While this approach is very flexible in the sense that it allows mixing QML and Qt 3D with widgets without clipping or stacking issues, using https:// in a https:// involves rendering to offscreen render targets (via framebuffer objects) twice. This is not always desirable for more complex scenes. For those the native window based approach shown in basicshapes-cpp will likely be a better choice.

Running the Example▲

To run the example from http://, open the Welcome mode and select the example from Examples. For more information, visit http://.

List of Files▲

Files:

List of Files▲

  • widgets-scene3d/main.cpp

  • widgets-scene3d/widgets-scene3d.pro

  • widgets-scene3d/widgets-scene3d.qrc

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

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.