Class: QgsSelectiveMaskingSourceSetManagerModel

List model representing the selective masking source sets available in a selective masking source sets manager.

Added in version 4.0.

Class Hierarchy

Inheritance diagram of qgis.core.QgsSelectiveMaskingSourceSetManagerModel

Base classes

QgsProjectStoredObjectManagerModelBase

Base class for list models representing the objects available in a QgsAbstractProjectStoredObjectManager.

QAbstractListModel

QAbstractItemModel

QObject

Enums

CustomRole

Custom model roles.

Methods

indexFromSet

Returns the model index corresponding to a set.

setFromIndex

Returns the set at the corresponding index.

class qgis.core.QgsSelectiveMaskingSourceSetManagerModel[source]

Bases: QgsProjectStoredObjectManagerModelBase

__init__(manager: QgsSelectiveMaskingSourceSetManager | None, parent: QObject | None = None)

Constructor for QgsSelectiveMaskingSourceSetManagerModel, showing the sets from the specified manager.

Parameters:
class CustomRole(*values)

Bases: IntEnum

Custom model roles.

  • Object: Object

  • IsEmptyObject: True if row represents the empty object

  • SetId: Selective masking source set unique ID

IsEmptyObject = 258
Object = 257
SetId = 259
indexFromSet(self, set: QgsSelectiveMaskingSourceSet | None) QModelIndex[source]

Returns the model index corresponding to a set.

See also

setFromIndex()

Parameters:

set (Optional[QgsSelectiveMaskingSourceSet])

Return type:

QModelIndex

setFromIndex(self, index: QModelIndex) QgsSelectiveMaskingSourceSet | None[source]

Returns the set at the corresponding index.

See also

indexFromSet()

Parameters:

index (QModelIndex)

Return type:

Optional[QgsSelectiveMaskingSourceSet]