Class: QgsNullPaintDevice

class qgis.core.QgsNullPaintDevice

Bases: PyQt5.QtGui.QPaintDevice

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

New in version 3.24:

Methods

metric

param metric

paintEngine

rtype

QPaintEngine

setOutputDpi

Sets the dpi of the device.

setOutputSize

Sets the size of the device in pixels.

metric(self, metric: QPaintDevice.PaintDeviceMetric) int
Parameters

metric (QPaintDevice.PaintDeviceMetric) –

Return type

int

paintEngine(self) QPaintEngine
Return type

QPaintEngine

setOutputDpi(self, dpi: int)

Sets the dpi of the device.

Parameters

dpi (int) –

setOutputSize(self, size: QSize)

Sets the size of the device in pixels.

Parameters

size (QSize) –