Class: QgsNullPaintDevice

Null painter device that can be used for map renderer jobs which use custom painters.

Added in version 3.24.

Class Hierarchy

Inheritance diagram of qgis.core.QgsNullPaintDevice

Base classes

QPaintDevice

Methods

setOutputDpi

Sets the dpi of the device.

setOutputSize

Sets the size of the device in pixels.

class qgis.core.QgsNullPaintDevice[source]

Bases: QPaintDevice

setOutputDpi(self, dpi: int)[source]

Sets the dpi of the device.

Parameters:

dpi (int)

setOutputSize(self, size: QSize)[source]

Sets the size of the device in pixels.

Parameters:

size (QSize)