class QFileSystemModel

Inheritance diagram of PySide6.QtWidgets.QFileSystemModel

Synopsis

Properties

Methods

Signals

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:
Access functions:
__init__([parent=None])
Parameters:

parentQObject

directoryLoaded(path)
Parameters:

path – str

fileIcon(index)
Parameters:

indexQModelIndex

Return type:

QIcon

fileInfo(index)
Parameters:

indexQModelIndex

Return type:

QFileInfo

fileName(index)
Parameters:

indexQModelIndex

Return type:

str

filePath(index)
Parameters:

indexQModelIndex

Return type:

str

fileRenamed(path, oldName, newName)
Parameters:
  • path – str

  • oldName – str

  • newName – str

filter()
Return type:

Combination of Filter

iconProvider()
Return type:

QAbstractFileIconProvider

index(path[, column=0])
Parameters:
  • path – str

  • column – int

Return type:

QModelIndex

isDir(index)
Parameters:

indexQModelIndex

Return type:

bool

isReadOnly()
Return type:

bool

Getter of property readOnlyᅟ .

lastModified(index)
Parameters:

indexQModelIndex

Return type:

QDateTime

lastModified(index, tz)
Parameters:
Return type:

QDateTime

mkdir(parent, name)
Parameters:
Return type:

QModelIndex

myComputer([role=Qt.DisplayRole])
Parameters:

role – int

Return type:

object

nameFilterDisables()
Return type:

bool

Getter of property nameFilterDisablesᅟ .

nameFilters()
Return type:

list of strings

options()
Return type:

Combination of Option

permissions(index)
Parameters:

indexQModelIndex

Return type:

Combination of Permission

remove(index)
Parameters:

indexQModelIndex

Return type:

bool

resolveSymlinks()
Return type:

bool

Getter of property resolveSymlinksᅟ .

rmdir(index)
Parameters:

indexQModelIndex

Return type:

bool

rootDirectory()
Return type:

QDir

rootPath()
Return type:

str

rootPathChanged(newPath)
Parameters:

newPath – str

setFilter(filters)
Parameters:

filters – Combination of Filter

setIconProvider(provider)
Parameters:

providerQAbstractFileIconProvider

setNameFilterDisables(enable)
Parameters:

enable – bool

Setter of property nameFilterDisablesᅟ .

setNameFilters(filters)
Parameters:

filters – list of strings

setOption(option[, on=true])
Parameters:
  • optionOption

  • on – bool

setOptions(options)
Parameters:

options – Combination of Option

setReadOnly(enable)
Parameters:

enable – bool

Setter of property readOnlyᅟ .

Parameters:

enable – bool

Setter of property resolveSymlinksᅟ .

setRootPath(path)
Parameters:

path – str

Return type:

QModelIndex

size(index)
Parameters:

indexQModelIndex

Return type:

int

testOption(option)
Parameters:

optionOption

Return type:

bool

type(index)
Parameters:

indexQModelIndex

Return type:

str