Class: QgsCptCityCollectionItem

A Collection: logical collection of subcollections and color ramps

Class Hierarchy

Inheritance diagram of qgis.core.QgsCptCityCollectionItem

Base classes

QgsCptCityDataItem

Base class for all items in the model

QObject

Subclasses

QgsCptCityAllRampsItem

An “All ramps item”, which contains all items in a flat hierarchy

QgsCptCityDirectoryItem

A directory: contains subdirectories and color ramps

QgsCptCitySelectionItem

A selection: contains subdirectories and color ramps

Methods

addChild

childrenRamps

setPopulated

class qgis.core.QgsCptCityCollectionItem[source]

Bases: QgsCptCityDataItem

addChild(self, item: QgsCptCityDataItem | None)[source]
Parameters:

item (Optional[QgsCptCityDataItem])

childrenRamps(self, recursive: bool) List[QgsCptCityDataItem]
Parameters:

recursive (bool)

Return type:

List[QgsCptCityDataItem]

setPopulated(self)[source]