Skip to content

PythonQt.QtGui.QFileSystemModel · declarations 001

Back to PythonQt.QtGui.QFileSystemModel

DontWatchForChanges instance-attribute

DontWatchForChanges: Any

FilePermissions instance-attribute

FilePermissions: Any

canFetchMore

canFetchMore(parent: Any) -> bool

X.canFetchMore(parent) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QFileSystemModel::canFetchMore(const QModelIndex \&parent) const

Reimplements: QAbstractItemModel::canFetchMore(const QModelIndex \&parent) const.

Upstream PySide2 reference signatures (binding differences may apply):

canFetchMore(self, parent: PySide2.QtCore.QModelIndex) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#canFetchMore

columnCount

columnCount(parent: Any) -> int

X.columnCount(parent) -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QFileSystemModel::columnCount(const QModelIndex \&parent \= QModelIndex()) const

Reimplements: QAbstractItemModel::columnCount(const QModelIndex \&parent) const.

Upstream PySide2 reference signatures (binding differences may apply):

columnCount(self, parent: PySide2.QtCore.QModelIndex=...) -> int

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#columnCount

columnsAboutToBeInserted

columnsAboutToBeInserted(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.columnsAboutToBeInserted; argument details are not documented.

columnsAboutToBeMoved

columnsAboutToBeMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.columnsAboutToBeMoved; argument details are not documented.

columnsAboutToBeRemoved

columnsAboutToBeRemoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.columnsAboutToBeRemoved; argument details are not documented.

columnsInserted

columnsInserted(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.columnsInserted; argument details are not documented.

columnsMoved

columnsMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.columnsMoved; argument details are not documented.

columnsRemoved

columnsRemoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.columnsRemoved; argument details are not documented.

data

data(index: Any, role: int) -> Any

X.data(index, role) -> object

Supplemental documentation: Qt 5 reference:

[override virtual] QVariant QFileSystemModel::data(const QModelIndex \&index, int role \= Qt::DisplayRole) const

Reimplements: QAbstractItemModel::data(const QModelIndex \&index, int role) const.

See also setData().

Upstream PySide2 reference signatures (binding differences may apply):

data(self, index: PySide2.QtCore.QModelIndex, role: int=...) -> typing.Any

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#data

dataChanged

dataChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.dataChanged; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.destroyed; argument details are not documented.

directoryLoaded

directoryLoaded(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.directoryLoaded; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QFileSystemModel::directoryLoaded(const QString \&path)

This signal is emitted when the gatherer thread has finished to load the path.

This function was introduced in Qt 4.7.

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#directoryLoaded

dropMimeData

dropMimeData(data: Any, action: Any, row: int, column: int, parent: Any) -> bool

X.dropMimeData(data, action, row, column, parent) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QFileSystemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex \&parent)

Reimplements: QAbstractItemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex \&parent).

Handles the data supplied by a drag and drop operation that ended with the given action over the row in the model specified by the row and column and by the parent index. Returns true if the operation was successful.

See also supportedDropActions().

Upstream PySide2 reference signatures (binding differences may apply):

dropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#dropMimeData

event

event(event: Any) -> bool

X.event(event) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QFileSystemModel::event(QEvent *event)

Reimplements: QObject::event(QEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, event: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#event

fetchMore

fetchMore(parent: Any) -> None

X.fetchMore(parent)

Supplemental documentation: Qt 5 reference:

[override virtual] void QFileSystemModel::fetchMore(const QModelIndex \&parent)

Reimplements: QAbstractItemModel::fetchMore(const QModelIndex \&parent).

Upstream PySide2 reference signatures (binding differences may apply):

fetchMore(self, parent: PySide2.QtCore.QModelIndex) -> None

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#fetchMore

fileIcon

fileIcon(index: Any) -> Any

X.fileIcon(index) -> PythonQt.QtGui.QIcon

Supplemental documentation: Qt 5 reference:

QIcon QFileSystemModel::fileIcon(const QModelIndex \&index) const

Returns the icon for the item stored in the model under the given index.

Upstream PySide2 reference signatures (binding differences may apply):

fileIcon(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtGui.QIcon

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#fileIcon

fileInfo

fileInfo(index: Any) -> Any

X.fileInfo(index) -> PythonQt.QtCore.QFileInfo

Supplemental documentation: Qt 5 reference:

QFileInfo QFileSystemModel::fileInfo(const QModelIndex \&index) const

Returns the QFileInfo for the item stored in the model under the given index.

Upstream PySide2 reference signatures (binding differences may apply):

fileInfo(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QFileInfo

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#fileInfo

fileName

fileName(index: Any) -> str

X.fileName(index) -> str

Supplemental documentation: Qt 5 reference:

QString QFileSystemModel::fileName(const QModelIndex \&index) const

Returns the file name for the item stored in the model under the given index.

Upstream PySide2 reference signatures (binding differences may apply):

fileName(self, index: PySide2.QtCore.QModelIndex) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#fileName

filePath

filePath(index: Any) -> str

X.filePath(index) -> str

Supplemental documentation: Qt 5 reference:

QString QFileSystemModel::filePath(const QModelIndex \&index) const

Returns the path of the item stored in the model under the index given.

Upstream PySide2 reference signatures (binding differences may apply):

filePath(self, index: PySide2.QtCore.QModelIndex) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#filePath

fileRenamed

fileRenamed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.fileRenamed; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QFileSystemModel::fileRenamed(const QString \&path, const QString \&oldName, const QString \&newName)

This signal is emitted whenever a file with the oldName is successfully renamed to newName. The file is located in in the directory path.

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#fileRenamed

filter

filter() -> Any

X.filter()

Supplemental documentation: Qt 5 reference:

QDir::Filters QFileSystemModel::filter() const

Returns the filter specified for the directory model.

If a filter has not been set, the default filter is QDir::AllEntries | QDir::NoDotAndDotDot | QDir::AllDirs.

See also setFilter() and QDir::Filters.

Upstream PySide2 reference signatures (binding differences may apply):

filter(self) -> PySide2.QtCore.QDir.Filters

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#filter

flags

flags(index: Any) -> Any

X.flags(index)

Supplemental documentation: Qt 5 reference:

[override virtual] Qt::ItemFlags QFileSystemModel::flags(const QModelIndex \&index) const

Reimplements: QAbstractItemModel::flags(const QModelIndex \&index) const.

Upstream PySide2 reference signatures (binding differences may apply):

flags(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#flags

hasChildren

hasChildren(parent: Any) -> bool

X.hasChildren(parent) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QFileSystemModel::hasChildren(const QModelIndex \&parent \= QModelIndex()) const

Reimplements: QAbstractItemModel::hasChildren(const QModelIndex \&parent) const.

Upstream PySide2 reference signatures (binding differences may apply):

hasChildren(self, parent: PySide2.QtCore.QModelIndex=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#hasChildren

headerData

headerData(section: int, orientation: Any, role: int) -> Any

X.headerData(section, orientation, role) -> object

Supplemental documentation: Qt 5 reference:

[override virtual] QVariant QFileSystemModel::headerData(int section, Qt::Orientation orientation, int role \= Qt::DisplayRole) const

Reimplements: QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const.

Upstream PySide2 reference signatures (binding differences may apply):

headerData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, role: int=...) -> typing.Any

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#headerData

headerDataChanged

headerDataChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.headerDataChanged; argument details are not documented.

iconProvider

iconProvider() -> Any

X.iconProvider() -> PythonQt.QtGui.QFileIconProvider

Supplemental documentation: Qt 5 reference:

QFileIconProvider *QFileSystemModel::iconProvider() const

Returns the file icon provider for this directory model.

See also setIconProvider().

Upstream PySide2 reference signatures (binding differences may apply):

iconProvider(self) -> PySide2.QtWidgets.QFileIconProvider

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#iconProvider

index

index(row: Any, column: int, parent: Any) -> Any

X.index(row, column, parent) -> PythonQt.QtCore.QModelIndex

Supplemental documentation: Qt 5 reference:

[override virtual] QModelIndex QFileSystemModel::index(int row, int column, const QModelIndex \&parent \= QModelIndex()) const

Reimplements: QAbstractItemModel::index(int row, int column, const QModelIndex \&parent) const.

QModelIndex QFileSystemModel::index(const QString \&path, int column \= 0) const

This is an overloaded function.

Returns the model item index for the given path and column.

Upstream PySide2 reference signatures (binding differences may apply):

index(self, path: str, column: int=...) -> PySide2.QtCore.QModelIndex
index(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex=...) -> PySide2.QtCore.QModelIndex

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#index

isDir

isDir(index: Any) -> bool

X.isDir(index) -> bool

Supplemental documentation: Qt 5 reference:

bool QFileSystemModel::isDir(const QModelIndex \&index) const

Returns true if the model item index represents a directory; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isDir(self, index: PySide2.QtCore.QModelIndex) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#isDir

isReadOnly

isReadOnly() -> bool

X.isReadOnly() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isReadOnly(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#isReadOnly

lastModified

lastModified(index: Any) -> Any

X.lastModified(index) -> PythonQt.QtCore.QDateTime

Supplemental documentation: Qt 5 reference:

QDateTime QFileSystemModel::lastModified(const QModelIndex \&index) const

Returns the date and time when index was last modified.

Upstream PySide2 reference signatures (binding differences may apply):

lastModified(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QDateTime

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#lastModified

layoutAboutToBeChanged

layoutAboutToBeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.layoutAboutToBeChanged; argument details are not documented.

layoutChanged

layoutChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.layoutChanged; argument details are not documented.

mimeData

mimeData(indexes: Any) -> Any

X.mimeData(indexes) -> PythonQt.QtCore.QMimeData

Supplemental documentation: Qt 5 reference:

[override virtual] QMimeData *QFileSystemModel::mimeData(const QModelIndexList \&indexes) const

Reimplements: QAbstractItemModel::mimeData(const QModelIndexList \&indexes) const.

Returns an object that contains a serialized description of the specified indexes. The format used to describe the items corresponding to the indexes is obtained from the mimeTypes() function.

If the list of indexes is empty, nullptr is returned rather than a serialized empty list.

Upstream PySide2 reference signatures (binding differences may apply):

mimeData(self, indexes: typing.List[int]) -> PySide2.QtCore.QMimeData

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#mimeData

mimeTypes

mimeTypes() -> tuple

X.mimeTypes() -> tuple

Supplemental documentation: Qt 5 reference:

[override virtual] QStringList QFileSystemModel::mimeTypes() const

Reimplements: QAbstractItemModel::mimeTypes() const.

Returns a list of MIME types that can be used to describe a list of items in the model.

Upstream PySide2 reference signatures (binding differences may apply):

mimeTypes(self) -> typing.List[str]

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#mimeTypes

mkdir

mkdir(parent: Any, name: str) -> Any

X.mkdir(parent, name) -> PythonQt.QtCore.QModelIndex

Supplemental documentation: Qt 5 reference:

QModelIndex QFileSystemModel::mkdir(const QModelIndex \&parent, const QString \&name)

Create a directory with the name in the parent model index.

Upstream PySide2 reference signatures (binding differences may apply):

mkdir(self, parent: PySide2.QtCore.QModelIndex, name: str) -> PySide2.QtCore.QModelIndex

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#mkdir

modelAboutToBeReset

modelAboutToBeReset(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.modelAboutToBeReset; argument details are not documented.

modelReset

modelReset(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QFileSystemModel.modelReset; argument details are not documented.

myComputer

myComputer(role: int) -> Any

X.myComputer(role) -> object

Supplemental documentation: Qt 5 reference:

QVariant QFileSystemModel::myComputer(int role \= Qt::DisplayRole) const

Returns the data stored under the given role for the item "My Computer".

See also Qt::ItemDataRole.

Upstream PySide2 reference signatures (binding differences may apply):

myComputer(self, role: int=...) -> typing.Any

Source: https://doc.qt.io/archives/qt-5.15/qfilesystemmodel.html#myComputer