Have a go hero – Applying multiple transformations

To understand the concept of transformations and their origin point, try to apply rotate() and scale() to an item. Also, change the point of origin and see how the item will react. As a second step, use QTransform in conjunction with setTransform() to apply multiple transformations to an item in a specific order.

Get Game Programming using Qt 5 Beginner's Guide - 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.