Subgroup: Image

Class: QgsImageFetcher

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

Bases: PyQt5.QtCore.QObject

Constructor

Handles asynchronous download of images

New in version 2.8: Methods

childEvent
connectNotify
customEvent
disconnectNotify
isSignalConnected
receivers
sender
senderSignalIndex
start Starts the image download
timerEvent

Signals

error Emitted when an error occurs [signal]
finish Emitted when the download completes
progress Emitted to report progress [signal]

Attributes

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

Emitted when an error occurs [signal]

finish

Emitted when the download completes

Parameters:legend – The downloaded legend image * [signal]
isSignalConnected()
progress

Emitted to report progress [signal]

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

Starts the image download

Note

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

timerEvent()