Embedding Qt Quick UI into a 3D scene

Qt 3D allows you to embed an arbitrary Qt Quick item into your 3D scene using the Scene2D type. How does that work? First, you need to put your Qt Quick content into a new Scene2D object. Next, you need to declare a texture that will be used as a render target for the form. Whenever Qt Quick decides to update its virtual view, the Scene2D object will render it directly to the specified texture. You only need to display this texture as you want. The most simple way of doing that is to pass it to a TextureMaterial component attached to one of your 3D objects. 

However, this is only one part of the job. It's nice to allow users to see your form, but they should also be able to interact with it. This is also ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.