Class: QgsStyleExportImportDialog¶
A dialog allowing importing and exporting of entities from a
QgsStyle
.

QgsStyleExportImportDialog showing the export mode¶

QgsStyleExportImportDialog showing the import mode¶
Class Hierarchy¶
Base classes¶
Methods
clearSelection deselects all symbols |
|
Deselects favorite symbols |
|
deselectSmartgroup deselects all symbols from a smart group |
|
deselectSymbols deselect symbols by name |
|
Deselect the symbols belonging to the given tag |
|
selectAll selects all symbols |
|
selectByGroup open select by group dialog |
|
Selects favorite symbols |
|
selectSmartgroup selects all symbols from a smart group |
|
selectSymbols select symbols by name |
|
Select the symbols belonging to the given tag |
|
Sets the initial path to use for importing files, when the dialog is in a Import mode. |
Attributes
- class qgis.gui.QgsStyleExportImportDialog[source]¶
Bases:
QDialog
- __init__(style: QgsStyle | None, parent: QWidget | None = None, mode: QgsStyleExportImportDialog.Mode = QgsStyleExportImportDialog.Export)
Constructor for QgsStyleExportImportDialog, with the specified
parent
widget.Creates a dialog for importing symbols into the given
style
, or exporting symbols from thestyle
. Themode
argument dictates whether the dialog is to be used for exporting or importing symbols.- Parameters:
style (Optional[QgsStyle])
parent (Optional[QWidget] = None)
mode (QgsStyleExportImportDialog.Mode = QgsStyleExportImportDialog.Export)
- Export = 0¶
- Import = 1¶
- class Mode¶
Bases:
int
- deselectSmartgroup(self, groupName: str | None)[source]¶
deselectSmartgroup deselects all symbols from a smart group
- Parameters:
groupName (Optional[str])
- deselectSymbols(self, symbolNames: Iterable[str | None])[source]¶
deselectSymbols deselect symbols by name
- Parameters:
symbolNames (Iterable[Optional[str]]) – list of symbol names
- deselectTag(self, tagName: str | None)[source]¶
Deselect the symbols belonging to the given tag
- Parameters:
tagName (Optional[str]) – the name of the group to be deselected
- selectSmartgroup(self, groupName: str | None)[source]¶
selectSmartgroup selects all symbols from a smart group
- Parameters:
groupName (Optional[str])
- selectSymbols(self, symbolNames: Iterable[str | None])[source]¶
selectSymbols select symbols by name
- Parameters:
symbolNames (Iterable[Optional[str]]) – list of symbol names