Class: QgsZipItem

A browser item for zip (archive) files.

Class Hierarchy

Inheritance diagram of qgis.core.QgsZipItem

Base classes

QgsDataCollectionItem

A browser item for collections of data.

QgsDataItem

Base class for all items in the model.

QObject

Methods

getZipFileList

itemFromFilePath

Creates a new data item from the specified path.

Static Methods

iconZip

itemFromPath

Creates a new data item from the specified path.

vsiPrefix

Attributes

sProviderNames

class qgis.core.QgsZipItem[source]

Bases: QgsDataCollectionItem

__init__(parent: QgsDataItem | None, name: str | None, path: str | None)

Constructor

Parameters:
  • parent (Optional[QgsDataItem])

  • name (Optional[str])

  • path (Optional[str])

__init__(parent: QgsDataItem | None, name: str | None, filePath: str | None, path: str | None, providerKey: str | None = '')

Constructor

Parameters:
  • parent (Optional[QgsDataItem])

  • name (Optional[str])

  • filePath (Optional[str])

  • path (Optional[str])

  • providerKey (Optional[str] = '')

getZipFileList(self) List[str][source]
Return type:

List[str]

static iconZip() QIcon[source]
Return type:

QIcon

itemFromFilePath(parent: QgsDataItem | None, filePath: str | None, name: str | None, path: str | None) QgsDataItem | None

Creates a new data item from the specified path.

Parameters:
  • parent (Optional[QgsDataItem])

  • filePath (Optional[str])

  • name (Optional[str])

  • path (Optional[str])

Return type:

Optional[QgsDataItem]

static itemFromPath(parent: QgsDataItem | None, path: str | None, name: str | None) QgsDataItem | None[source]

Creates a new data item from the specified path.

Parameters:
  • parent (Optional[QgsDataItem])

  • path (Optional[str])

  • name (Optional[str])

Return type:

Optional[QgsDataItem]

sProviderNames = []
static vsiPrefix(uri: str | None) str[source]

Deprecated since version 3.40.

Will be removed in QGIS 4.0.

Parameters:

uri (Optional[str])

Return type:

str