The QPainter Class
Understand how our GUI applications use the QPainter class.
We'll cover the following...
Using the QPainter class
You will likely use the QPainter
class whenever you need to draw something in PyQt. Simple points and lines, complicated forms, text, and pixmaps can all be drawn using the methods provided by QPainter
. In earlier chapters, we looked at pixmaps in applications where we were required to display images. You can alter several QPainter
parameters, including rendering quality ...