Class: QgsZipItem¶
- class qgis.core.QgsZipItem(parent: QgsDataItem, name: str, path: str)¶
Bases:
QgsDataCollectionItem
Constructor
QgsZipItem(parent:
QgsDataItem
, name: str, filePath: str, path: str, providerKey: str = ‘’) ConstructorA zip file: contains layers, using GDAL/OGR VSIFILE mechanism
Methods
- rtype
object
The item is scheduled to be deleted.
- rtype
List[str]
Shared home directory icon.
- rtype
QIcon
Creates a new data item from the specified path.
Creates a new data item from the specified path.
Shared open directory icon.
Refresh the items from a specified list of child items.
Will request a repaint of this icon.
- param uri
Attributes
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- createChildren(self) → object¶
- Return type
object
- 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)¶
- getZipFileList(self) → List[str]¶
- Return type
List[str]
- homeDirIcon() → QIcon¶
Shared home directory icon.
New in version 3.4.
- iconZip() → QIcon¶
- Return type
QIcon
- isSignalConnected(self, QMetaMethod) → bool¶
- itemFromFilePath(parent: QgsDataItem, filePath: str, name: str, path: str) → QgsDataItem¶
Creates a new data item from the specified path.
Note
available in Python as itemFromFilePath
- Parameters
parent (QgsDataItem) –
filePath (str) –
name (str) –
path (str) –
- Return type
- itemFromPath(parent: QgsDataItem, path: str, name: str) → QgsDataItem¶
Creates a new data item from the specified path.
- Parameters
parent (QgsDataItem) –
path (str) –
name (str) –
- Return type
- openDirIcon() → QIcon¶
Shared open directory icon.
New in version 3.4.
- populate(self, children: object)¶
- populate(self, foreground: bool = False) → None
- receivers(self, PYQT_SIGNAL) → int¶
- refresh(self, children: object)¶
Refresh the items from a specified list of child items.
refresh(self)
- sProviderNames = []¶
- sender(self) → QObject¶
- senderSignalIndex(self) → int¶
- timerEvent(self, QTimerEvent)¶
- updateIcon(self)¶
Will request a repaint of this icon.
New in version 3.0.
- vsiPrefix(uri: str) → str¶
- Parameters
uri (str) –
- Return type
str