Class: QgsDirectoryItem¶
-
class
qgis.core.
QgsDirectoryItem
(parent: QgsDataItem, name: str, path: str)¶ Bases:
QgsDataCollectionItem
QgsDirectoryItem(parent:
QgsDataItem
, name: str, dirPath: str, path: str) Constructor.- Parameters
parent (QgsDataItem) –
name (str) – directory name
dirPath – path to directory in file system
path (str) – item path in the tree, it may be dirPath or dirPath with some prefix, e.g. favorites: *
A directory: contains subdirectories and layers
Methods
- param parent
- rtype
object
- rtype
str
- param other
Check if the given path is hidden from the browser model
- rtype
QIcon
- rtype
QWidget
- param state
Attributes
-
class
Column
¶ Bases:
int
-
Date
= 2¶
-
Group
= 5¶
-
Name
= 0¶
-
Owner
= 4¶
-
Permissions
= 3¶
-
Size
= 1¶
-
Type
= 6¶
-
actions
(self, parent: QWidget) → List[QAction]¶ - Parameters
parent (QWidget) –
- Return type
List[QAction]
-
childEvent
()¶
-
childrenCreated
(self)¶
-
connectNotify
()¶
-
createChildren
(self) → object¶ - Return type
object
-
customEvent
()¶
-
deferredDelete
()¶
-
dirPath
(self) → str¶ - Return type
str
-
directoryChanged
(self)¶
-
disconnectNotify
()¶
-
equal
(self, other: QgsDataItem) → bool¶ - Parameters
other (QgsDataItem) –
- Return type
bool
Check if the given path is hidden from the browser model
- Parameters
path (str) –
- Return type
bool
-
homeDirIcon
()¶
-
icon
(self) → QIcon¶ - Return type
QIcon
-
init
(self)¶
-
isSignalConnected
()¶
-
openDirIcon
()¶
-
paramWidget
(self) → QWidget¶ - Return type
QWidget
-
populate
()¶
-
receivers
()¶
-
refresh
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setState
(self, state: QgsDataItem.State)¶ - Parameters
state (QgsDataItem.State) –
-
timerEvent
()¶
-
updateIcon
()¶