Class: QgsStyleModel¶
-
class
qgis.core.
QgsStyleModel
(style: QgsStyle, parent: QObject = None)¶ Bases:
PyQt5.QtCore.QAbstractItemModel
Constructor for QgsStyleModel, for the specified
style
andparent
object.The
style
object must exist for the lifetime of this model.A QAbstractItemModel subclass for showing symbol and color ramp entities contained within a QgsStyle database.
See also
New in version 3.4: Enums
Methods
Adds an additional icon
size
to generate for Qt.DecorationRole data.Signals
Attributes
-
class
Column
¶ Bases:
int
-
Name
= 0¶
-
class
Role
¶ Bases:
int
-
SymbolTypeRole
= 259¶
-
TagRole
= 258¶
-
Tags
= 1¶
-
TypeRole
= 257¶
-
addDesiredIconSize
(self, size: QSize)¶ Adds an additional icon
size
to generate for Qt.DecorationRole data.This allows style icons to be generated at an icon size which corresponds exactly to the view’s icon size in which this model is used.
-
beginInsertColumns
()¶
-
beginInsertRows
()¶
-
beginMoveColumns
()¶
-
beginMoveRows
()¶
-
beginRemoveColumns
()¶
-
beginRemoveRows
()¶
-
beginResetModel
()¶
-
changePersistentIndex
()¶
-
changePersistentIndexList
()¶
-
childEvent
()¶
-
columnCount
(self, parent: QModelIndex = QModelIndex()) → int¶
-
connectNotify
()¶
-
createIndex
()¶
-
customEvent
()¶
-
data
(self, index: QModelIndex, role: int) → Any¶
-
decodeData
()¶
-
disconnectNotify
()¶
-
encodeData
()¶
-
endInsertColumns
()¶
-
endInsertRows
()¶
-
endMoveColumns
()¶
-
endMoveRows
()¶
-
endRemoveColumns
()¶
-
endRemoveRows
()¶
-
endResetModel
()¶
-
flags
(self, index: QModelIndex) → Qt.ItemFlags¶
-
headerData
(self, section: int, orientation: Qt.Orientation, role: int = Qt.DisplayRole) → Any¶
-
index
(self, row: int, column: int, parent: QModelIndex = QModelIndex()) → QModelIndex¶
-
isSignalConnected
()¶
-
parent
(self, index: QModelIndex) → QModelIndex¶
-
persistentIndexList
()¶
-
receivers
()¶
-
resetInternalData
()¶
-
rowCount
(self, parent: QModelIndex = QModelIndex()) → int¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setData
(self, index: QModelIndex, value: Any, role: int = Qt.EditRole) → bool¶
-
timerEvent
()¶
-
class