Class: QgsProxyProgressTask

class qgis.core.QgsProxyProgressTask(description: str)

Bases: QgsTask

Constructor for QgsProxyProgressTask, with the specified description.

A QgsTask shell which proxies progress reports.

Simple task shell which runs until finalized and reports progress only. This is usually used to expose a blocking operation’s progress via task manager.

New in version 3.4.

Parameters

description

childEvent()
connectNotify()
customEvent()
disconnectNotify()
finalize(self, result: bool)

Finalizes the task, with the specified result.

This should be called when the operation being proxied has completed, to remove this proxy task from the task manager.

Parameters

result (bool) –

finished()
isCanceled()
isSignalConnected()
receivers()
run(self) → bool
Return type

bool

sender()
senderSignalIndex()
setProgress()
setProxyProgress(self, progress: float)

Sets the progress (from 0 to 100) for the proxied operation.

This method is safe to call from the main thread.

Parameters

progress (float) –

timerEvent()