QgsImageFetcher class

Handles asynchronous download of images.

Constructors, destructors, conversion operators

QgsImageFetcher(QObject* parent = nullptr)
Constructor.

Public functions

void start() pure virtual
Starts the image download.

Signals

void error(const QString& msg)
Emitted when an error occurs.
void finish(const QImage& legend)
Emitted when the download completes.
void progress(qint64 received, qint64 total)
Emitted to report progress.

Function documentation

void QgsImageFetcher::start() pure virtual

Starts the image download.

void QgsImageFetcher::finish(const QImage& legend) signal

Emitted when the download completes.

Parameters
legend The downloaded legend image