Brief description: The QPainter method setBackgroundColor sets the background color of the canvas. In this example, we set the background to white using the QColor method.
Brief description: The method setBackground draws a background color which fills the entire canvas. In this example, we use it to set the canvas color to white using the QColor method.
Package library: PyQt5.QtGui
Python QPainter.setBackground - 19 examples found. These are the top rated real world Python examples of PyQt5.QtGui.QPainter.setBackground extracted from open source projects. You can rate examples to help us improve the quality of examples.