PySide6.QtWidgets.QFileSystemModel¶
- class QFileSystemModel¶
-
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
fileIcon()
def
fileInfo()
def
fileName()
def
filePath()
def
filter()
def
iconProvider()
def
index()
def
isDir()
def
isReadOnly()
def
lastModified()
def
mkdir()
def
myComputer()
def
nameFilters()
def
options()
def
permissions()
def
remove()
def
rmdir()
def
rootDirectory()
def
rootPath()
def
setFilter()
def
setNameFilters()
def
setOption()
def
setOptions()
def
setReadOnly()
def
setRootPath()
def
size()
def
testOption()
def
type()
Signals¶
def
fileRenamed()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
- class Roles¶
- class Option¶
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property nameFilterDisablesᅟ: bool¶
- Access functions:
- property optionsᅟ: Combination of QAbstractFileIconProvider.Option¶
- Access functions:
- property readOnlyᅟ: bool¶
- Access functions:
- property resolveSymlinksᅟ: bool¶
- Access functions:
- directoryLoaded(path)¶
- Parameters:
path – str
- fileIcon(index)¶
- Parameters:
index –
QModelIndex
- Return type:
- fileInfo(index)¶
- Parameters:
index –
QModelIndex
- Return type:
- fileName(index)¶
- Parameters:
index –
QModelIndex
- Return type:
str
- filePath(index)¶
- Parameters:
index –
QModelIndex
- Return type:
str
- fileRenamed(path, oldName, newName)¶
- Parameters:
path – str
oldName – str
newName – str
- iconProvider()¶
- Return type:
- index(path[, column=0])¶
- Parameters:
path – str
column – int
- Return type:
- isDir(index)¶
- Parameters:
index –
QModelIndex
- Return type:
bool
- isReadOnly()¶
- Return type:
bool
Getter of property
readOnlyᅟ
.- lastModified(index)¶
- Parameters:
index –
QModelIndex
- Return type:
- lastModified(index, tz)
- Parameters:
index –
QModelIndex
tz –
QTimeZone
- Return type:
- mkdir(parent, name)¶
- Parameters:
parent –
QModelIndex
name – str
- Return type:
- myComputer([role=Qt.DisplayRole])¶
- Parameters:
role – int
- Return type:
object
- nameFilterDisables()¶
- Return type:
bool
Getter of property
nameFilterDisablesᅟ
.- nameFilters()¶
- Return type:
list of strings
- permissions(index)¶
- Parameters:
index –
QModelIndex
- Return type:
Combination of
Permission
- remove(index)¶
- Parameters:
index –
QModelIndex
- Return type:
bool
- resolveSymlinks()¶
- Return type:
bool
Getter of property
resolveSymlinksᅟ
.- rmdir(index)¶
- Parameters:
index –
QModelIndex
- Return type:
bool
- rootPath()¶
- Return type:
str
- rootPathChanged(newPath)¶
- Parameters:
newPath – str
- setIconProvider(provider)¶
- Parameters:
provider –
QAbstractFileIconProvider
- setNameFilterDisables(enable)¶
- Parameters:
enable – bool
Setter of property
nameFilterDisablesᅟ
.- setNameFilters(filters)¶
- Parameters:
filters – list of strings
- setReadOnly(enable)¶
- Parameters:
enable – bool
Setter of property
readOnlyᅟ
.- setResolveSymlinks(enable)¶
- Parameters:
enable – bool
Setter of property
resolveSymlinksᅟ
.- setRootPath(path)¶
- Parameters:
path – str
- Return type:
- size(index)¶
- Parameters:
index –
QModelIndex
- Return type:
int
- type(index)¶
- Parameters:
index –
QModelIndex
- Return type:
str