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

childEvent()
childrenCreated(self)
connectNotify()
createChildren(self) → object
customEvent()
deferredDelete()
dirPath(self) → str

Returns the full path to the directory the item represents.

directoryChanged(self)
disconnectNotify()
equal(self, other: QgsDataItem) → bool
hasDragEnabled(self) → bool
hiddenPath(path: str) → bool

Check if the given path is hidden from the browser model

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