Class: QgsProcessingMultipleSelectionPanelWidget¶
A panel widget for selection of multiple options from a fixed list of options.
Note
Not stable API
Added in version 3.14.
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as a inline panel |
|
Subclasses¶
A panel widget for selection of multiple inputs from a fixed list of options. |
Methods
Adds a new option to the widget. |
|
Returns the widget's button box. |
|
Value formatter |
|
Returns pointer to the list view |
|
Returns the ordered list of selected options. |
|
Sets a callback function to use when encountering an invalid geometry and |
Signals
Emitted when the accept button is clicked. |
|
Emitted when the selection changes in the widget. |
- class qgis.gui.QgsProcessingMultipleSelectionPanelWidget[source]¶
Bases:
QgsPanelWidget- __init__(availableOptions: Iterable[Any] = [], selectedOptions: Iterable[Any] = [], parent: QWidget | None = None)
Constructor for QgsProcessingMultipleSelectionPanelWidget.
The
availableOptionslist specifies the list of standard known options for the parameter, whilst theselectedOptionslist specifies which options should be initially selected.The
selectedOptionslist may contain extra options which are not present inavailableOptions, in which case they will be also added as existing options within the dialog.- Parameters:
availableOptions (Iterable[Any] = [])
selectedOptions (Iterable[Any] = [])
parent (Optional[QWidget] = None)
- addOption(self, value: Any, title: str | None, selected: bool, updateExistingTitle: bool = False)[source]¶
Adds a new option to the widget.
- Parameters:
value (Any)
title (Optional[str])
selected (bool)
updateExistingTitle (bool = False)
- buttonBox(self) QDialogButtonBox | None[source]¶
Returns the widget’s button box.
- Return type:
Optional[QDialogButtonBox]
- dragEnterEvent(self, event: QDragEnterEvent | None)[source]¶
Value formatter
- Parameters:
event (Optional[QDragEnterEvent])
- listView(self) QListView | None[source]¶
Returns pointer to the list view
- Return type:
Optional[QListView]