Class: QgsDialog¶
A generic dialog with layout and button box.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Subclasses¶
A dialog for modifying the properties of a |
|
A dialog for prompting users for a new name, for example new layer name dialog. |
Constructor
Methods
Returns the button box. |
|
Returns the central layout. |
Static Methods
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)