In this section, we will learn how to draw simple vector shapes (a line, a rectangle, a circle, and so on) and display text on the main window using the QPainter class. We will also learn how to change the drawing style of these vector shapes using the QPen class.