Class: QgsDataCollectionItem¶
-
class
qgis.core.
QgsDataCollectionItem
¶ Bases:
QgsDataItem
A Collection: logical collection of layers or subcollections, e.g. GRASS location/mapset, database? wms source?
Methods
- param item
The item is scheduled to be deleted.
Shared home directory icon.
Returns the standard browser data collection icon.
Returns the standard browser directory icon.
Shared open directory icon.
populate(self, foreground: bool = False)
Refresh the items from a specified list of child items.
Will request a repaint of this icon.
-
addChild
(self, item: QgsDataItem)¶ - Parameters
item (QgsDataItem) –
-
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), the deferredDelete() returns
True
and item will be deleted once Populating finished. Items with slow reateChildren() (for example network or database based) may check during createChildren() if deferredDelete() returnsTrue
and return from createChildren() immediately because result will be useless. *
-
disconnectNotify
(self, QMetaMethod)¶
-
homeDirIcon
() → QIcon¶ Shared home directory icon.
New in version 3.4.
- Return type
QIcon
-
iconDataCollection
() → QIcon¶ Returns the standard browser data collection icon.
See also
- Return type
QIcon
-
iconDir
() → QIcon¶ Returns the standard browser directory icon.
See also
- Return type
QIcon
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
openDirIcon
() → QIcon¶ Shared open directory icon.
New in version 3.4.
- Return type
QIcon
-
populate
(self, children: object)¶ populate(self, foreground: bool = False)
-
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.