Class: QgsModelDesignerDialog

Model designer dialog base class.

Warning

Not stable API

Added in version 3.14.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.gui.QgsModelDesignerDialog

Base classes

QMainWindow

QWidget

QObject

QPaintDevice

QgsProcessingFeedbackGenerator

Factory for creating QgsProcessingFeedback objects.

QgsProcessingContextGenerator

An interface for objects which can create Processing contexts.

QgsProcessingWidgetContextGenerator

An interface for objects which can create Processing widget contexts.

Abstract Methods

createFeedback

Methods

activate

Raise, unminimize and activate this window.

loadModel

Loads a model into the designer from the specified file path.

model

Returns the model shown in the dialog.

saveInProject

Saves the model to the current project.

setModel

Sets the model shown in the dialog.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsModelDesignerDialog. See the FAQ for more details.

processingContext

Signals

aboutToClose

Emitted when the dialog is about to close.

modelUpdated

Emitted when the model is updated.

class qgis.gui.QgsModelDesignerDialog[source]

Bases: QMainWindow, QgsProcessingFeedbackGenerator, QgsProcessingContextGenerator, QgsProcessingWidgetContextGenerator

signal aboutToClose[source]

Emitted when the dialog is about to close.

Added in version 4.4.

activate(self)[source]

Raise, unminimize and activate this window.

Added in version 3.24.

abstract createFeedback(self) → QgsProcessingFeedback | None[source]
Return type:

QgsProcessingFeedback|None

loadModel(self, path: str | None)[source]

Loads a model into the designer from the specified file path.

Parameters:

path (str|None)

model(self) → QgsProcessingModelAlgorithm | None[source]

Returns the model shown in the dialog.

Return type:

QgsProcessingModelAlgorithm|None

signal modelUpdated[source]

Emitted when the model is updated.

Warning

DO NOT USE – this is bad API, here for compatibility with Python code only.

virtual processingContext(self) → QgsProcessingContext | None[source]
Return type:

QgsProcessingContext|None

saveInProject(self)[source]

Saves the model to the current project.

Added in version 4.4.

setModel(self, model: QgsProcessingModelAlgorithm | None)[source]

Sets the model shown in the dialog.

Ownership of model is transferred to the dialog.

Parameters:

model (QgsProcessingModelAlgorithm|None)