Class: QgsDialog

A generic dialog with layout and button box.

List of all members, including inherited members

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.

Constructor

__init__

Methods

buttonBox

Returns the button box.

layout

Returns the central layout.

Static Methods

getMultiLineText

Static method to display a multi-line text input dialog with word wrapping.

class qgis.gui.QgsDialog[source]

Bases: QDialog

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

Constructor for QgsDialog.

Parameters:
  • parent (QWidget|None = None)

  • fl (Qt.WindowType = QgsGuiUtils.ModalDialogFlags)

  • buttons (QDialogButtonBox.StandardButton = QDialogButtonBox.Close)

  • orientation (Qt.Orientation = Qt.Horizontal)

buttonBox(self) → QDialogButtonBox | None[source]

Returns the button box.

Return type:

QDialogButtonBox|None

static getMultiLineText(parent: QWidget | None, title: str | None, label: str | None, text: str | None = '', flags: Qt.WindowType = Qt.WindowFlags(), inputMethodHints: Qt.InputMethodHint = Qt.ImhNone)[source]

Static method to display a multi-line text input dialog with word wrapping. Drop-in replacement for QInputDialog.getMultiLineText() which does not word wrap.

Added in version 4.4.

Parameters:
  • parent (QWidget|None)

  • title (str|None)

  • label (str|None)

  • text (str|None = '')

  • flags (Qt.WindowType = Qt.WindowFlags())

  • inputMethodHints (Qt.InputMethodHint = Qt.ImhNone)

Return type:

(str, bool)

layout(self) → QVBoxLayout | None[source]

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

Return type:

QVBoxLayout|None