The Basic Drawing example shows how to display basic graphics primitives in a variety of styles using the QPainter class.