April 2018
Beginner
714 pages
18h 21m
English
First, we set a four pixels wide black pen for the painter. Then, we called rect() to retrieve the geometry rectangle of the widget. By calling adjusted(), we receive a new rectangle with its coordinates (in the left, top, right, and bottom order) modified by the given arguments, effectively giving us a rectangle with a 10 pixel margin on each side.
Read now
Unlock full access