Class: QgsCptCityDataItem

class qgis.core.QgsCptCityDataItem

Bases: PyQt5.QtCore.QObject

Base class for all items in the model

Methods

acceptDrop

rtype:

bool

addChildItem

param child:

childEvent

children

rtype:

List[QgsCptCityDataItem]

connectNotify

createChildren

rtype:

List[QgsCptCityDataItem]

customEvent

deleteChildItem

param child:

disconnectNotify

equal

param other:

findItem

param items:

handleDrop

param a0:

hasChildren

rtype:

bool

icon

rtype:

QIcon

info

rtype:

str

isPopulated

rtype:

bool

isSignalConnected

isValid

rtype:

bool

leafCount

rtype:

int

name

rtype:

str

paramWidget

rtype:

Optional[QWidget]

parent

rtype:

Optional[QgsCptCityDataItem]

path

rtype:

str

populate

receivers

refresh

removeChildItem

param child:

rowCount

rtype:

int

sender

senderSignalIndex

setIcon

param icon:

setParent

param parent:

setToolTip

param msg:

shortInfo

rtype:

str

timerEvent

toolTip

rtype:

str

type

rtype:

QgsCptCityDataItem.Type

Signals

AllRamps

Collection

ColorRamp

Directory

Selection

Attributes

AllRamps

Collection

ColorRamp

Directory

Selection

AllRamps = 4
Collection = 1
ColorRamp = 0
Directory = 2
Selection = 3
class Type

Bases: int

acceptDrop(self) bool
Return type:

bool

addChildItem(self, child: QgsCptCityDataItem | None, refresh: bool = False)
Parameters:
beginInsertItems

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...)

  • revision (int = ...)

  • arguments (Sequence = ...)

Return type:

PYQT_SIGNAL

beginRemoveItems

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...)

  • revision (int = ...)

  • arguments (Sequence = ...)

Return type:

PYQT_SIGNAL

childEvent(self, a0: QChildEvent | None)
children(self) List[QgsCptCityDataItem]
Return type:

List[QgsCptCityDataItem]

connectNotify(self, signal: QMetaMethod)
createChildren(self) List[QgsCptCityDataItem]
Return type:

List[QgsCptCityDataItem]

customEvent(self, a0: QEvent | None)
deleteChildItem(self, child: QgsCptCityDataItem | None)
Parameters:

child (Optional[QgsCptCityDataItem])

disconnectNotify(self, signal: QMetaMethod)
endInsertItems

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...)

  • revision (int = ...)

  • arguments (Sequence = ...)

Return type:

PYQT_SIGNAL

endRemoveItems

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...)

  • revision (int = ...)

  • arguments (Sequence = ...)

Return type:

PYQT_SIGNAL

equal(self, other: QgsCptCityDataItem | None) bool
Parameters:

other (Optional[QgsCptCityDataItem])

Return type:

bool

findItem(items: Iterable[QgsCptCityDataItem], item: QgsCptCityDataItem | None) int
Parameters:
Return type:

int

handleDrop(self, a0: QMimeData | None, a1: Qt.DropAction) bool
Parameters:
  • a0 (Optional[QMimeData])

  • a1 (Qt.DropAction)

Return type:

bool

hasChildren(self) bool
Return type:

bool

icon(self) QIcon
icon(self, size: QSize) QIcon
Return type:

QIcon

info(self) str
Return type:

str

isPopulated(self) bool
Return type:

bool

isSignalConnected(self, signal: QMetaMethod) bool
isValid(self) bool
Return type:

bool

leafCount(self) int
Return type:

int

name(self) str
Return type:

str

paramWidget(self) QWidget | None
Return type:

Optional[QWidget]

parent(self) QgsCptCityDataItem | None
Return type:

Optional[QgsCptCityDataItem]

path(self) str
Return type:

str

populate(self)
receivers(self, signal: PYQT_SIGNAL) int
refresh(self)
removeChildItem(self, child: QgsCptCityDataItem | None) QgsCptCityDataItem | None
Parameters:

child (Optional[QgsCptCityDataItem])

Return type:

Optional[QgsCptCityDataItem]

rowCount(self) int
Return type:

int

sender(self) QObject | None
senderSignalIndex(self) int
setIcon(self, icon: QIcon)
Parameters:

icon (QIcon)

setParent(self, parent: QgsCptCityDataItem | None)
Parameters:

parent (Optional[QgsCptCityDataItem])

setToolTip(self, msg: str | None)
Parameters:

msg (Optional[str])

shortInfo(self) str
Return type:

str

timerEvent(self, a0: QTimerEvent | None)
toolTip(self) str
Return type:

str

type(self) QgsCptCityDataItem.Type
Return type:

QgsCptCityDataItem.Type