Class: QgsProjectItem¶
- class qgis.core.QgsProjectItem¶
Bases:
QgsDataItem
Data item that can be used to represent QGIS projects.
QgsProjectItem(parent:
QgsDataItem
, name: str, path: str, providerKey: str = ‘’) A data item holding a reference to a QGIS project file.- Parameters
parent – The parent data item.
name – The name of the of the project. Displayed to the user.
path – The full path to the project.
providerKey –
key of the provider that created this item
Methods
The item is scheduled to be deleted.
- rtype
bool
- rtype
List[QgsMimeDataUtils.Uri]
Refresh the items from a specified list of child items.
Will request a repaint of this icon.
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- deferredDelete(self) bool ¶
The item is scheduled to be deleted. E.g. if
deleteLater()
is called when item is in Populating state (createChildren()
running in another thread), thedeferredDelete()
returnsTrue
and item will be deleted once Populating finished. Items with slowreateChildren()
(for example network or database based) may check duringcreateChildren()
ifdeferredDelete()
returnsTrue
and return fromcreateChildren()
immediately because result will be useless.
- disconnectNotify(self, QMetaMethod)¶
- hasDragEnabled(self) bool ¶
- Return type
bool
- isSignalConnected(self, QMetaMethod) bool ¶
- mimeUris(self) List[QgsMimeDataUtils.Uri] ¶
- Return type
List[QgsMimeDataUtils.Uri]
- receivers(self, PYQT_SIGNAL) int ¶
- refresh(self, children: object)¶
Refresh the items from a specified list of child items.
refresh(self)
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶
- updateIcon(self)¶
Will request a repaint of this icon.
New in version 3.0.