Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtWidgets »

Classe « QFileSystemModel »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QAbstractItemModel
                QFileSystemModel

Définition

class QFileSystemModel(QAbstractItemModel):

Description [extrait de QFileSystemModel.__doc__]

QFileSystemModel(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None __init__(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
DontResolveSymlinksPySide6.QtWidgets.QFileSystemModel.Option.DontResolveSymlinks
DontUseCustomDirectoryIconsPySide6.QtWidgets.QFileSystemModel.Option.DontUseCustomDirectoryIcons
DontWatchForChangesPySide6.QtWidgets.QFileSystemModel.Option.DontWatchForChanges
FileIconRolePySide6.QtWidgets.QFileSystemModel.Roles.FileIconRole
FileNameRolePySide6.QtWidgets.QFileSystemModel.Roles.FileNameRole
FilePathRolePySide6.QtWidgets.QFileSystemModel.Roles.FilePathRole
FilePermissionsPySide6.QtWidgets.QFileSystemModel.Roles.FilePermissions
HorizontalSortHintPySide6.QtCore.QAbstractItemModel.LayoutChangeHint.HorizontalSortHint
NoLayoutChangeHintPySide6.QtCore.QAbstractItemModel.LayoutChangeHint.NoLayoutChangeHint
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfce6b80>
VerticalSortHintPySide6.QtCore.QAbstractItemModel.LayoutChangeHint.VerticalSortHint

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
canFetchMore(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool canFetchMore(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool [extrait de canFetchMore.__doc__]
columnCount(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> int columnCount(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> int [extrait de columnCount.__doc__]
columnsAboutToBeInserted
columnsAboutToBeMoved
columnsAboutToBeRemoved
columnsInserted
columnsMoved
columnsRemoved
data(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], role: int = PySide6.QtCore.Qt.ItemDataRole.DisplayRole) -> Any data(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], role: int = PySide6.QtCore.Qt.ItemDataRole.DisplayRole) -> Any [extrait de data.__doc__]
dataChanged
destroyed
directoryLoaded
dropMimeData(self, data: PySide6.QtCore.QMimeData, action: PySide6.QtCore.Qt.DropAction, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool dropMimeData(self, data: PySide6.QtCore.QMimeData, action: PySide6.QtCore.Qt.DropAction, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool [extrait de dropMimeData.__doc__]
event(self, event: PySide6.QtCore.QEvent) -> bool event(self, event: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
fetchMore(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None fetchMore(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None [extrait de fetchMore.__doc__]
fileIcon(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtGui.QIcon fileIcon(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtGui.QIcon [extrait de fileIcon.__doc__]
fileInfo(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QFileInfo fileInfo(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QFileInfo [extrait de fileInfo.__doc__]
fileName(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> str fileName(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> str [extrait de fileName.__doc__]
filePath(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> str filePath(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> str [extrait de filePath.__doc__]
fileRenamed
filter(self) -> PySide6.QtCore.QDir.Filters filter(self) -> PySide6.QtCore.QDir.Filters [extrait de filter.__doc__]
flags(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.Qt.ItemFlags flags(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.Qt.ItemFlags [extrait de flags.__doc__]
hasChildren(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool hasChildren(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool [extrait de hasChildren.__doc__]
headerData(self, section: int, orientation: PySide6.QtCore.Qt.Orientation, role: int = PySide6.QtCore.Qt.ItemDataRole.DisplayRole) -> Any headerData(self, section: int, orientation: PySide6.QtCore.Qt.Orientation, role: int = PySide6.QtCore.Qt.ItemDataRole.DisplayRole) -> Any [extrait de headerData.__doc__]
headerDataChanged
iconProvider(self) -> PySide6.QtGui.QAbstractFileIconProvider iconProvider(self) -> PySide6.QtGui.QAbstractFileIconProvider [extrait de iconProvider.__doc__]
index index(self, path: str, column: int = 0) -> PySide6.QtCore.QModelIndex [extrait de index.__doc__]
isDir(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool isDir(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool [extrait de isDir.__doc__]
isReadOnly(self) -> bool isReadOnly(self) -> bool [extrait de isReadOnly.__doc__]
lastModified(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QDateTime lastModified(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QDateTime [extrait de lastModified.__doc__]
layoutAboutToBeChanged
layoutChanged
mimeData(self, indexes: List[int]) -> PySide6.QtCore.QMimeData mimeData(self, indexes: List[int]) -> PySide6.QtCore.QMimeData [extrait de mimeData.__doc__]
mimeTypes(self) -> List[str] mimeTypes(self) -> List[str] [extrait de mimeTypes.__doc__]
mkdir(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], name: str) -> PySide6.QtCore.QModelIndex mkdir(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], name: str) -> PySide6.QtCore.QModelIndex [extrait de mkdir.__doc__]
modelAboutToBeReset
modelReset
myComputer(self, role: int = PySide6.QtCore.Qt.ItemDataRole.DisplayRole) -> Any myComputer(self, role: int = PySide6.QtCore.Qt.ItemDataRole.DisplayRole) -> Any [extrait de myComputer.__doc__]
nameFilterDisables(self) -> bool nameFilterDisables(self) -> bool [extrait de nameFilterDisables.__doc__]
nameFilters(self) -> List[str] nameFilters(self) -> List[str] [extrait de nameFilters.__doc__]
objectNameChanged
Option
Options
options(self) -> PySide6.QtWidgets.QFileSystemModel.Options options(self) -> PySide6.QtWidgets.QFileSystemModel.Options [extrait de options.__doc__]
parent parent(self) -> PySide6.QtCore.QObject [extrait de parent.__doc__]
remove(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool remove(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool [extrait de remove.__doc__]
resolveSymlinks(self) -> bool resolveSymlinks(self) -> bool [extrait de resolveSymlinks.__doc__]
rmdir(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool rmdir(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool [extrait de rmdir.__doc__]
roleNames(self) -> Dict[int, PySide6.QtCore.QByteArray] roleNames(self) -> Dict[int, PySide6.QtCore.QByteArray] [extrait de roleNames.__doc__]
Roles
rootDirectory(self) -> PySide6.QtCore.QDir rootDirectory(self) -> PySide6.QtCore.QDir [extrait de rootDirectory.__doc__]
rootPath(self) -> str rootPath(self) -> str [extrait de rootPath.__doc__]
rootPathChanged
rowCount(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> int rowCount(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> int [extrait de rowCount.__doc__]
rowsAboutToBeInserted
rowsAboutToBeMoved
rowsAboutToBeRemoved
rowsInserted
rowsMoved
rowsRemoved
setData(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], value: Any, role: int = PySide6.QtCore.Qt.ItemDataRole.EditRole) -> bool setData(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], value: Any, role: int = PySide6.QtCore.Qt.ItemDataRole.EditRole) -> bool [extrait de setData.__doc__]
setFilter(self, filters: PySide6.QtCore.QDir.Filters) -> None setFilter(self, filters: PySide6.QtCore.QDir.Filters) -> None [extrait de setFilter.__doc__]
setIconProvider(self, provider: PySide6.QtGui.QAbstractFileIconProvider) -> None setIconProvider(self, provider: PySide6.QtGui.QAbstractFileIconProvider) -> None [extrait de setIconProvider.__doc__]
setNameFilterDisables(self, enable: bool) -> None setNameFilterDisables(self, enable: bool) -> None [extrait de setNameFilterDisables.__doc__]
setNameFilters(self, filters: Sequence[str]) -> None setNameFilters(self, filters: Sequence[str]) -> None [extrait de setNameFilters.__doc__]
setOption(self, option: PySide6.QtWidgets.QFileSystemModel.Option, on: bool = True) -> None setOption(self, option: PySide6.QtWidgets.QFileSystemModel.Option, on: bool = True) -> None [extrait de setOption.__doc__]
setOptions(self, options: PySide6.QtWidgets.QFileSystemModel.Options) -> None setOptions(self, options: PySide6.QtWidgets.QFileSystemModel.Options) -> None [extrait de setOptions.__doc__]
setReadOnly(self, enable: bool) -> None setReadOnly(self, enable: bool) -> None [extrait de setReadOnly.__doc__]
setResolveSymlinks(self, enable: bool) -> None setResolveSymlinks(self, enable: bool) -> None [extrait de setResolveSymlinks.__doc__]
setRootPath(self, path: str) -> PySide6.QtCore.QModelIndex setRootPath(self, path: str) -> PySide6.QtCore.QModelIndex [extrait de setRootPath.__doc__]
sibling(self, row: int, column: int, idx: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QModelIndex sibling(self, row: int, column: int, idx: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QModelIndex [extrait de sibling.__doc__]
size(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> int size(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> int [extrait de size.__doc__]
sort(self, column: int, order: PySide6.QtCore.Qt.SortOrder = PySide6.QtCore.Qt.SortOrder.AscendingOrder) -> None sort(self, column: int, order: PySide6.QtCore.Qt.SortOrder = PySide6.QtCore.Qt.SortOrder.AscendingOrder) -> None [extrait de sort.__doc__]
supportedDropActions(self) -> PySide6.QtCore.Qt.DropActions supportedDropActions(self) -> PySide6.QtCore.Qt.DropActions [extrait de supportedDropActions.__doc__]
testOption(self, option: PySide6.QtWidgets.QFileSystemModel.Option) -> bool testOption(self, option: PySide6.QtWidgets.QFileSystemModel.Option) -> bool [extrait de testOption.__doc__]
timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None [extrait de timerEvent.__doc__]
tr
type(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> str type(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> str [extrait de type.__doc__]

Méthodes héritées de la classe QAbstractItemModel

__init_subclass__, __subclasshook__, beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canDropMimeData, changePersistentIndex, changePersistentIndexList, checkIndex, CheckIndexOption, CheckIndexOptions, clearItemData, createIndex, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, hasIndex, insertColumn, insertColumns, insertRow, insertRows, itemData, LayoutChangeHint, match, moveColumn, moveColumns, moveRow, moveRows, persistentIndexList, removeColumn, removeColumns, removeRow, removeRows, resetInternalData, revert, setHeaderData, setItemData, span, submit, supportedDragActions

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__