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(self, QActionEvent)
changeEvent(self, QEvent)
childEvent(self, QChildEvent)
clearSelection(self)

clearSelection deselects all symbols

closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
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(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
doExportImport(self)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) → bool
hideEvent(self, QHideEvent)
importTypeChanged(self, int)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) → int
resizeEvent(self, QResizeEvent)
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(self) → QObject
senderSignalIndex(self) → int
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(self) → QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)