Class: QgsDialog

A generic dialog with layout and button box

Class Hierarchy

Inheritance diagram of qgis.gui.QgsDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Subclasses

QgsEffectStackPropertiesDialog

A dialog for modifying the properties of a QgsEffectStack, including adding and reordering effects within the stack.

QgsNewNameDialog

New name, for example new layer name dialog. If existing names are provided, the dialog warns users if an entered name already exists.

Methods

buttonBox

Returns the button box.

layout

Returns the central layout.

class qgis.gui.QgsDialog[source]

Bases: QDialog

__init__(parent: QWidget | None = None, fl: Qt.WindowFlags | Qt.WindowType = QgsGuiUtils.ModalDialogFlags, buttons: QDialogButtonBox.StandardButtons | QDialogButtonBox.StandardButton = QDialogButtonBox.Close, orientation: Qt.Orientation = Qt.Horizontal)

Constructor for QgsDialog.

Parameters:
  • parent (Optional[QWidget] = None)

  • fl (Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags)

  • buttons (Union[QDialogButtonBox.StandardButtons, QDialogButtonBox.StandardButton] = QDialogButtonBox.Close)

  • orientation (Qt.Orientation = Qt.Horizontal)

buttonBox(self) QDialogButtonBox | None[source]

Returns the button box.

Return type:

Optional[QDialogButtonBox]

layout(self) QVBoxLayout | None[source]

Returns the central layout. Widgets added to it must have this dialog as parent.

Return type:

Optional[QVBoxLayout]