Class: QgsProxyProgressTask

class qgis.core.QgsProxyProgressTask(description: str)

Bases: qgis._core.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: Enums

Methods

childEvent

connectNotify

customEvent

disconnectNotify

finalize

Finalizes the task, with the specified result.

finished

isCanceled

isSignalConnected

receivers

run

sender

senderSignalIndex

setProgress

setProxyProgress

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

timerEvent

Signals

Attributes

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.

finished()
isCanceled()
isSignalConnected()
receivers()
run(self) → 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.

timerEvent()