O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Entities and components

Qt 3D is not just a 3D rendering tool. When sufficiently evolved, it can become a full-featured game engine. This is supported by its original architecture. Qt 3D introduces a new set of abstractions that are particularly useful for its task. 

You may have noticed that most of the Qt API heavily uses inheritance. For example, each widget type is derived from QWidget, which in turn is derived from QObject. Qt forms large family trees of classes to provide common and specialized behavior. In contrast, elements of a Qt 3D scene are constructed using composition instead of inheritance. A single part of a Qt 3D scene is called an entity and represented by the Entity type. However, an Entity object by itself doesn't have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required