Subgroup: Directory

Class: QgsDirectoryItem

class qgis.core.QgsDirectoryItem(parent: QgsDataItem, name: str, path: str)

Bases: qgis._core.QgsDataCollectionItem

QgsDirectoryItem(parent: QgsDataItem, name: str, dirPath: str, path: str) Constructor.

Parameters:
  • parent
  • name – directory name
  • dirPath – path to directory in file system
  • path – item path in the tree, it may be dirPath or dirPath with some prefix, e.g. favorites: *

A directory: contains subdirectories and layers

class Column

Bases: int

Date = 2
Group = 5
Name = 0
Owner = 4
Permissions = 3
Size = 1
Type = 6
childEvent()
childrenCreated(self)
connectNotify()
createChildren(self) → object
customEvent()
deferredDelete()
dirPath(self) → str
directoryChanged(self)
disconnectNotify()
equal(self, other: QgsDataItem) → bool
hiddenPath(path: str) → bool

Check if the given path is hidden from the browser model

homeDirIcon()
icon(self) → QIcon
init(self)
isSignalConnected()
openDirIcon()
paramWidget(self) → QWidget
populate()
receivers()
refresh()
sender()
senderSignalIndex()
setState(self, state: QgsDataItem.State)
timerEvent()
updateIcon()