In the following section, we will learn how to render vector graphics on our Qt application using the QPainter class.
Drawing vector shapes
Vector versus bitmap
There are two types of format in computer graphics—bitmap and vector. Bitmap images (also known as raster images) are images that are stored as a series of tiny dots called pixels. Each pixel will be assigned a color and gets displayed on screen exactly how it's stored—a one-to-one correspondence between the pixels and what is displayed on the screen.
On the other hand, vector images are not based on bitmap patterns but rather use mathematical formulas to represent lines and curves that can be combined to create geometrical shapes.
The main characteristics...