Class: QgsCptCityDataItem

class qgis.core.QgsCptCityDataItem

Bases: PyQt5.QtCore.QObject

Base class for all items in the model

Methods

acceptDrop

rtype

bool

actions

rtype

List[QAction]

addChildItem

param child

childEvent

children

rtype

object

connectNotify

createChildren

rtype

object

customEvent

deleteChildItem

param child

disconnectNotify

equal

param other

findItem

param items

handleDrop

rtype

bool

hasChildren

rtype

bool

icon

rtype

QIcon

info

rtype

str

isPopulated

rtype

bool

isSignalConnected

isValid

rtype

bool

leafCount

rtype

int

name

rtype

str

paramWidget

rtype

QWidget

parent

rtype

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

beginInsertItems

beginInsertItems(self, parent: QgsCptCityDataItem, first: int, last: int) [signal]

beginRemoveItems

beginRemoveItems(self, parent: QgsCptCityDataItem, first: int, last: int) [signal]

endInsertItems

endInsertItems(self) [signal]

endRemoveItems

endRemoveItems(self) [signal]

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

actions(self) List[QAction]
Return type

List[QAction]

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

beginInsertItems(self, parent: QgsCptCityDataItem, first: int, last: int) [signal]

Parameters
beginRemoveItems

beginRemoveItems(self, parent: QgsCptCityDataItem, first: int, last: int) [signal]

Parameters
childEvent(self, QChildEvent)
children(self) object
Return type

object

connectNotify(self, QMetaMethod)
createChildren(self) object
Return type

object

customEvent(self, QEvent)
deleteChildItem(self, child: QgsCptCityDataItem)
Parameters

child (QgsCptCityDataItem) –

disconnectNotify(self, QMetaMethod)
endInsertItems

endInsertItems(self) [signal]

endRemoveItems

endRemoveItems(self) [signal]

equal(self, other: QgsCptCityDataItem) bool
Parameters

other (QgsCptCityDataItem) –

Return type

bool

findItem(items: object, item: QgsCptCityDataItem) int
Parameters
Return type

int

handleDrop(self, QMimeData, Qt.DropAction) bool
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, QMetaMethod) bool
isValid(self) bool
Return type

bool

leafCount(self) int
Return type

int

name(self) str
Return type

str

paramWidget(self) QWidget
Return type

QWidget

parent(self) QgsCptCityDataItem
Return type

QgsCptCityDataItem

path(self) str
Return type

str

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

child (QgsCptCityDataItem) –

Return type

QgsCptCityDataItem

rowCount(self) int
Return type

int

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

icon (QIcon) –

setParent(self, parent: QgsCptCityDataItem)
Parameters

parent (QgsCptCityDataItem) –

setToolTip(self, msg: str)
Parameters

msg (str) –

shortInfo(self) str
Return type

str

timerEvent(self, QTimerEvent)
toolTip(self) str
Return type

str

type(self) QgsCptCityDataItem.Type
Return type

QgsCptCityDataItem.Type