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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.