Class: QgsStyleExportImportDialog

class qgis.gui.QgsStyleExportImportDialog(style: QgsStyle, parent: QWidget = None, mode: QgsStyleExportImportDialog.Mode = QgsStyleExportImportDialog.Export)

Bases: PyQt5.QtWidgets.QDialog

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 (QgsStyle) –

  • parent (QWidget = None) –

  • mode

Export = 0
Import = 1
class Mode

Bases: int

actionEvent()
changeEvent()
childEvent()
clearSelection(self)

clearSelection deselects all symbols

closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
deselectSmartgroup(self, groupName: str)

deselectSmartgroup deselects all symbols from a smart group

Parameters

groupName (str) –

deselectSymbols(self, symbolNames: Iterable[str])

deselectSymbols deselect symbols by name

Parameters

symbolNames (Iterable[str]) – list of symbol names

deselectTag(self, tagName: str)

Deselect the symbols belonging to the given tag

Parameters

tagName (str) – the name of the group to be deselected

destroy()
disconnectNotify()
doExportImport(self)
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
importTypeChanged(self, int)
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
selectAll(self)

selectAll selects all symbols

selectByGroup(self)

selectByGroup open select by group dialog

selectSmartgroup(self, groupName: str)

selectSmartgroup selects all symbols from a smart group

Parameters

groupName (str) –

selectSymbols(self, symbolNames: Iterable[str])

selectSymbols select symbols by name

Parameters

symbolNames (Iterable[str]) – list of symbol names

selectTag(self, tagName: str)

Select the symbols belonging to the given tag

Parameters

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

sender()
senderSignalIndex()
setImportFilePath(self, path: str)

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

New in version 3.6.

Parameters

path (str) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()