Expression painter:pixmap()
returns a Qt variant of class
qt.QPixmap
representing the drawing surface.
When the underlying surface is a widget without backing store,
this function grabs the widget representation from the display.
When the painter operates on a device that cannot be represented
as a pixmap, for instance a printer,
this function returns an empty pixmap for which method
tobool
returns false
.