Class: QgsCptCityDataItem¶
- class qgis.core.QgsCptCityDataItem¶
Bases:
PyQt5.QtCore.QObject
Base class for all items in the model
Methods
- rtype:
bool
- param child:
- rtype:
List[QgsCptCityDataItem]
- rtype:
List[QgsCptCityDataItem]
- param child:
- param other:
- param items:
- rtype:
bool
- rtype:
bool
- rtype:
QIcon
- rtype:
str
- rtype:
bool
- rtype:
bool
- rtype:
int
- rtype:
str
- rtype:
QWidget
- rtype:
QgsCptCityDataItem
- rtype:
str
- param child:
- rtype:
int
- param icon:
- param parent:
- param msg:
- rtype:
str
- rtype:
str
- rtype:
QgsCptCityDataItem.Type
Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
Attributes
- AllRamps = 4¶
- Collection = 1¶
- ColorRamp = 0¶
- Directory = 2¶
- Selection = 3¶
- class Type¶
Bases:
int
- acceptDrop(self) bool ¶
- Return type:
bool
- addChildItem(self, child: QgsCptCityDataItem, refresh: bool = False)¶
- Parameters:
child (QgsCptCityDataItem) –
refresh (bool = False) –
- 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, QChildEvent)¶
- children(self) List[QgsCptCityDataItem] ¶
- Return type:
List[QgsCptCityDataItem]
- connectNotify(self, QMetaMethod)¶
- createChildren(self) List[QgsCptCityDataItem] ¶
- Return type:
List[QgsCptCityDataItem]
- customEvent(self, QEvent)¶
- deleteChildItem(self, child: QgsCptCityDataItem)¶
- Parameters:
child (QgsCptCityDataItem) –
- disconnectNotify(self, 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) bool ¶
- Parameters:
other (QgsCptCityDataItem) –
- Return type:
bool
- findItem(items: Iterable[QgsCptCityDataItem], item: QgsCptCityDataItem) int ¶
- Parameters:
items (Iterable[QgsCptCityDataItem]) –
item (QgsCptCityDataItem) –
- 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:
- 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:
- 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: