Creating a Painter GUI
Learn how we can use the QPainter class to create a painting application.
We'll cover the following...
Creating the GUI
The paintEvent()
method of QLabel
can be subclassed for easier management of drawing on label objects. A pixmap is created and passed to setPixmap()
. Using a pixmap makes handling the painting and displaying of pixels simpler because QPixmap
can be used as a QPaintDevice
. ...