How to do it...

Let's learn how to use a 3D canvas in QML by following this example:

  1. Let's start this example by creating a new project in Qt Creator. This time around, we will go for Qt Quick Application—Canvas 3D and not the other options that we chose in the previous examples:
  1. After that, Qt Creator will ask you whether to create a project that is based on the three.js JavaScript library. Check the Create a three.js based application option and press the Next button to proceed:
  1. Once the project is created, you will notice that there ...

Get Qt5 C++ GUI Programming Cookbook - Second Edition 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.