Class: QgsProcessingFeedback¶
Base class for providing feedback from a processing algorithm.
This base class implementation silently ignores all feedback reported by
algorithms. Subclasses of QgsProcessingFeedback can be used
to log this feedback or report it to users via the GUI.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for feedback objects to be used for cancellation of something running in a worker thread. |
|
Subclasses¶
Processing feedback object for multi-step operations. |
Constructor
Methods
Pushes a summary of the execution results to the log |
|
Pushes a summary of the QGIS (and underlying library) version information to the log. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsProcessingFeedback. See the FAQ for more details.
Returns the HTML formatted contents of the log, which contains all messages pushed to the feedback object. |
|
Pushes an informational message containing a command from the algorithm. |
|
Pushes a console feedback message from the algorithm. |
|
Pushes an informational message containing debugging helpers from the algorithm. |
|
Pushes a pre-formatted message from the algorithm. |
|
Pushes a general informational message from the algorithm. |
|
Pushes a warning informational message from the algorithm. |
|
Reports that the algorithm encountered an error while executing. |
|
Sets a progress report text string. |
|
Returns the plain text contents of the log, which contains all messages pushed to the feedback object. |
Signals
Emitted when command information text is pushed. |
|
Emitted when console information text is pushed. |
|
Emitted when debug information text is pushed. |
|
Emitted when an error is reported. |
|
Emitted when a formatted html message is pushed. |
|
Emitted when information text is pushed. |
|
Emitted when the progress text is changed. |
|
Emitted when an warning is pushed. |
- class qgis.core.QgsProcessingFeedback[source]¶
Bases:
QgsFeedback- __init__(logFeedback: bool = True)¶
Constructor for QgsProcessingFeedback.
If
logFeedbackisTrue, then all feedback received will be directed toQgsMessageLog.- Parameters:
logFeedback (bool = True)
- signal commandInfoPushed(text: str)[source]¶
Emitted when command information
textis pushed.See also
Added in version 4.2.
- Parameters:
text (str)
- signal consoleInfoPushed(text: str)[source]¶
Emitted when console information
textis pushed.See also
Added in version 4.2.
- Parameters:
text (str)
- signal debugInfoPushed(text: str)[source]¶
Emitted when debug information
textis pushed.See also
Added in version 4.2.
- Parameters:
text (str)
- signal errorReported(text: str, fatalError: bool)[source]¶
Emitted when an error is reported.
See also
Added in version 4.2.
- Parameters:
text (str)
fatalError (bool)
- signal formattedMessagePushed(html: str)[source]¶
Emitted when a formatted
htmlmessage is pushed.See also
Added in version 4.2.
- Parameters:
html (str)
- virtual htmlLog(self) str[source]¶
Returns the HTML formatted contents of the log, which contains all messages pushed to the feedback object.
See also
Added in version 3.14.
- Return type:
str
- signal infoPushed(text: str)[source]¶
Emitted when information
textis pushed.See also
Added in version 4.2.
- Parameters:
text (str)
- signal progressTextChanged(text: str)[source]¶
Emitted when the progress
textis changed.See also
Added in version 4.2.
- Parameters:
text (str)
- virtual pushCommandInfo(self, info: str | None)[source]¶
Pushes an informational message containing a command from the algorithm. This is usually used to report commands which are executed in an external application or as subprocesses.
See also
See also
See also
See also
See also
- Parameters:
info (Optional[str])
- virtual pushConsoleInfo(self, info: str | None)[source]¶
Pushes a console feedback message from the algorithm. This is used to report the output from executing an external command or subprocess.
See also
See also
See also
See also
See also
- Parameters:
info (Optional[str])
- virtual pushDebugInfo(self, info: str | None)[source]¶
Pushes an informational message containing debugging helpers from the algorithm.
See also
See also
See also
See also
See also
- Parameters:
info (Optional[str])
- virtual pushFormattedMessage(self, html: str | None, text: str | None)[source]¶
Pushes a pre-formatted message from the algorithm.
This can be used to push formatted HTML messages to the feedback object. A plain
textversion of the message must also be specified.See also
See also
See also
See also
See also
See also
Added in version 3.36.
- pushFormattedResults(self, algorithm: QgsProcessingAlgorithm | None, context: QgsProcessingContext, results: dict[str | None, Any])[source]¶
Pushes a summary of the execution
resultsto the logAdded in version 3.36.
- Parameters:
algorithm (Optional[QgsProcessingAlgorithm])
context (QgsProcessingContext)
- virtual pushInfo(self, info: str | None)[source]¶
Pushes a general informational message from the algorithm. This can be used to report feedback which is neither a status report or an error, such as “Found 47 matching features”.
See also
See also
See also
See also
See also
See also
- Parameters:
info (Optional[str])
- pushVersionInfo(self, provider: QgsProcessingProvider | None = None)[source]¶
Pushes a summary of the QGIS (and underlying library) version information to the log.
Added in version 3.4.7.
- Parameters:
provider (Optional[QgsProcessingProvider] = None)
- virtual pushWarning(self, warning: str | None)[source]¶
Pushes a warning informational message from the algorithm. This should only be used sparsely as to maintain the importance of visual queues associated to this type of message.
See also
See also
See also
See also
See also
Added in version 3.16.2.
- Parameters:
warning (Optional[str])
- virtual reportError(self, error: str | None, fatalError: bool = False)[source]¶
Reports that the algorithm encountered an
errorwhile executing.If
fatalErrorisTruethen the error prevented the algorithm from executing.See also
- Parameters:
error (Optional[str])
fatalError (bool = False)
- virtual setProgressText(self, text: str | None)[source]¶
Sets a progress report text string. This can be used in conjunction with
setProgress()to provide detailed progress reports, such as “Transformed 4 of 5 layers”.See also
See also
- Parameters:
text (Optional[str])
- virtual textLog(self) str[source]¶
Returns the plain text contents of the log, which contains all messages pushed to the feedback object.
See also
Added in version 3.14.
- Return type:
str