April 2018
Beginner
714 pages
18h 21m
English
The view consists of the viewport and two scrollbars. The viewport is a subwidget that actually contains the content of the scene. The view performs conversion from the scene coordinates to the viewport coordinates based on multiple parameters.
First, the view needs to know the bounding rectangle of everything we could want to see in the scene. It's called the scene rect and is measured in the scene's coordinate system. By default, the scene rect is the bounding rectangle of all items that were added at the scene since it was created. This is usually fine, but if you move or delete an item, that bounding rectangle will not shrink (because of performance reasons), so it may result in showing a lot of unwanted ...
Read now
Unlock full access