Summary

In the first part of this chapter, you have learned how the Graphics View architecture works. First, we had a look at the items. There you learned how to create your own items by using QPainter and which kinds of standard item Qt has to offer. Later on, we also discussed how to transform these items and what the point of origin for that transformation has to do with it. Next we went through the coordinate system of the items, the scene, and the view. We also saw how these three parts work together, for example. how to put items on a scene. Lastly, we learned how to scale and move the scene inside the view. At the same time, you read about advanced topics, such as taking the zoom level into account when painting an item.

In the second part ...

Get Game Programming Using Qt 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.