Class: QgsImageFetcher

class qgis.core.QgsImageFetcher(parent: QObject = None)

Bases: PyQt5.QtCore.QObject

Constructor

Handles asynchronous download of images

New in version 2.8.

Parameters

parent

childEvent()
connectNotify()
customEvent()
disconnectNotify()
error

Emitted when an error occurs [signal]

Parameters

msg (str) –

finish

Emitted when the download completes

Parameters

legend (QImage) – The downloaded legend image [signal]

isSignalConnected()
progress

Emitted to report progress [signal]

Parameters
  • received (int) –

  • total (int) –

receivers()
sender()
senderSignalIndex()
start(self)

Starts the image download

Note

Make sure to connect to “finish” and “error” before starting

timerEvent()