aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/basicdrawing/doc/basicdrawing.rst
blob: 26aa8c997da4e87be2cf6f71b53ffc3fab7797e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Basic Drawing Example
=====================

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

QPainter performs low-level painting on widgets and other paint devices. The
class can draw everything from simple lines to complex shapes like pies and
chords. It can also draw aligned text and pixmaps. Normally, it draws in
a "natural" coordinate system, but it can in addition do view and world
transformation.

.. image:: stardelegate.png
   :width: 400
   :alt: Basic Drawing Screenshot