To use Graphics View correctly, you need to understand how the coordinate systems in this framework work. We'll go through all the levels of hierarchy and see how we can change the positioning of items and the whole scene, on each level. We will provide examples of the code that you can paste into our demo project and examine the effect.
Coordinate systems
The item's coordinate system
Each item has its own coordinate system. In our example of Post-it notes, the content of each note is defined relative to the top-left corner of the note. No matter how you move or rotate the item, these coordinates remain the same. The coordinates of a drawn object can usually be passed to the constructor of the class, like we did...