Class: QgsStyleExportImportDialog

A dialog allowing importing and exporting of entities from a QgsStyle.

QgsStyleExportImportDialog showing the export mode

QgsStyleExportImportDialog showing the export mode

QgsStyleExportImportDialog showing the import mode

QgsStyleExportImportDialog showing the import mode

Class Hierarchy

Inheritance diagram of qgis.gui.QgsStyleExportImportDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

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 the style. The mode 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

clearSelection(self)[source]

clearSelection deselects all symbols

deselectFavorites(self)[source]

Deselects favorite symbols

Added in version 3.14.

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

doExportImport(self)[source]
importTypeChanged(self, a0: int)[source]
Parameters:

a0 (int)

selectAll(self)[source]

selectAll selects all symbols

selectByGroup(self)[source]

selectByGroup open select by group dialog

selectFavorites(self)[source]

Selects favorite symbols

Added in version 3.14.

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

selectTag(self, tagName: str | None)[source]

Select the symbols belonging to the given tag

Parameters:

tagName (Optional[str]) – the name of the group to be selected

setImportFilePath(self, path: str | None)[source]

Sets the initial path to use for importing files, when the dialog is in a Import mode.

Added in version 3.6.

Parameters:

path (Optional[str])