Class: QgsStyleSaveDialog

A dialog for setting properties of a newly saved style.

QgsStyleSaveDialog

QgsStyleSaveDialog

Class Hierarchy

Inheritance diagram of qgis.gui.QgsStyleSaveDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

class qgis.gui.QgsStyleSaveDialog[source]

Bases: QDialog

__init__(parent: QWidget | None = None, type: QgsStyle.StyleEntity = QgsStyle.SymbolEntity)

Constructor for QgsSymbolSaveDialog

Parameters:
  • parent (Optional[QWidget] = None) – parent widget

  • type (QgsStyle.StyleEntity = QgsStyle.SymbolEntity) – the QgsStyle entity type being saved

destinationStyle(self) QgsStyle | None[source]

Returns the destination style database.

Added in version 3.26.

Return type:

Optional[QgsStyle]

isFavorite(self) bool[source]

Returns True if the favorite is checked for the symbol.

Return type:

bool

name(self) str[source]

Returns the entered name for the new symbol.

Return type:

str

selectedType(self) QgsStyle.StyleEntity[source]

Returns the type of style entity to save.

Added in version 3.10.

Return type:

QgsStyle.StyleEntity

setDefaultTags(self, tags: str | None)[source]

Sets the default tags for the newly created item.

Added in version 3.10.

Parameters:

tags (Optional[str])

tags(self) str[source]

Returns any tags entered for the new symbol (as a comma separated value list).

Return type:

str