O'Reilly logo

Qt 5 Projects by Marco Piccolino

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

Adding elements to a composition

First of all, we want our users to be able to add a few 3D elements to what we call a composition.

Here, the 3D elements will just be simple shapes, but nothing prevents us from extending the notion to more elaborate 3D models to be imported from tools like Blender (https://www.blender.org/). We can check automatically that the addition was successful as follows:

Feature: Add element to composition    Scenario: Zero to one elements        Given there is a composition with zero elements in it        When I add element "A" to the composition        Then the composition contains exactly one element        And the new contained element is "A"    Scenario: One to two elements        Given there is a composition with element "A" in it When I add element ...

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