In this video we are going to learn How to Draw Shapes in Python with Pyside2, so for this we are going to use QPainter class , According to Qt For Python Documentation the QPainter provides highly optimized functions
to do most of the drawing GUI programs require. It 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 also do view and world transformation.

QPainter can operate on any object that inherits the QPaintDevice class.

#python

How to Draw Shapes in Python with Pyside2
4.05 GEEK