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

A dialog for prompting users for a new name, for example new layer name dialog.

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]