3D canvas in QML

In this recipe, we will learn how to render 3D images using Qt's powerful QML scripting language.

How to do it…

  1. Let's start this example by creating a new project in Qt Creator. This time around, we will create Qt Canvas 3D Application and not the other options that we chose in all previous examples:
    How to do it…
  2. After that, Qt Creator will ask you whether to create a project that is based on three.js. Leave the option checked and press the Next button to proceed:
    How to do it…
  3. Once the project is created, you will notice there are some JavaScript (.js) files already ...

Get Qt5 C++ GUI Programming Cookbook now with O’Reilly online learning.

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