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 « PySide2.QtWidgets »

Classe « QDirModel »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QAbstractItemModel
                QDirModel

Définition

class QDirModel(QAbstractItemModel):

Description [extrait de QDirModel.__doc__]

QDirModel(self, nameFilters: typing.Sequence[str], filters: PySide2.QtCore.QDir.Filters, sort: PySide2.QtCore.QDir.SortFlags, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = None)
QDirModel(self, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = 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, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
FileIconRolePySide2.QtWidgets.QDirModel.Roles.FileIconRole
FileNameRolePySide2.QtWidgets.QDirModel.Roles.FileNameRole
FilePathRolePySide2.QtWidgets.QDirModel.Roles.FilePathRole
HorizontalSortHintPySide2.QtCore.QAbstractItemModel.LayoutChangeHint.HorizontalSortHint
NoLayoutChangeHintPySide2.QtCore.QAbstractItemModel.LayoutChangeHint.NoLayoutChangeHint
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe3595d100>
VerticalSortHintPySide2.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__]
columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int [extrait de columnCount.__doc__]
columnsAboutToBeInserted
columnsAboutToBeMoved
columnsAboutToBeRemoved
columnsInserted
columnsMoved
columnsRemoved
data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any [extrait de data.__doc__]
dataChanged
destroyed
dropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool dropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool [extrait de dropMimeData.__doc__]
fileIcon(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtGui.QIcon fileIcon(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtGui.QIcon [extrait de fileIcon.__doc__]
fileInfo(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QFileInfo fileInfo(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QFileInfo [extrait de fileInfo.__doc__]
fileName(self, index: PySide2.QtCore.QModelIndex) -> str fileName(self, index: PySide2.QtCore.QModelIndex) -> str [extrait de fileName.__doc__]
filePath(self, index: PySide2.QtCore.QModelIndex) -> str filePath(self, index: PySide2.QtCore.QModelIndex) -> str [extrait de filePath.__doc__]
filter(self) -> PySide2.QtCore.QDir.Filters filter(self) -> PySide2.QtCore.QDir.Filters [extrait de filter.__doc__]
flags(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags flags(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags [extrait de flags.__doc__]
hasChildren(self, index: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool hasChildren(self, index: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de hasChildren.__doc__]
headerData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any headerData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any [extrait de headerData.__doc__]
headerDataChanged
iconProvider(self) -> PySide2.QtWidgets.QFileIconProvider iconProvider(self) -> PySide2.QtWidgets.QFileIconProvider [extrait de iconProvider.__doc__]
index index(self, path: str, column: int = 0) -> PySide2.QtCore.QModelIndex [extrait de index.__doc__]
isDir(self, index: PySide2.QtCore.QModelIndex) -> bool isDir(self, index: PySide2.QtCore.QModelIndex) -> bool [extrait de isDir.__doc__]
isReadOnly(self) -> bool isReadOnly(self) -> bool [extrait de isReadOnly.__doc__]
layoutAboutToBeChanged
layoutChanged
lazyChildCount(self) -> bool lazyChildCount(self) -> bool [extrait de lazyChildCount.__doc__]
mimeData(self, indexes: typing.List[int]) -> PySide2.QtCore.QMimeData mimeData(self, indexes: typing.List[int]) -> PySide2.QtCore.QMimeData [extrait de mimeData.__doc__]
mimeTypes(self) -> typing.List[str] mimeTypes(self) -> typing.List[str] [extrait de mimeTypes.__doc__]
mkdir(self, parent: PySide2.QtCore.QModelIndex, name: str) -> PySide2.QtCore.QModelIndex mkdir(self, parent: PySide2.QtCore.QModelIndex, name: str) -> PySide2.QtCore.QModelIndex [extrait de mkdir.__doc__]
modelAboutToBeReset
modelReset
nameFilters(self) -> typing.List[str] nameFilters(self) -> typing.List[str] [extrait de nameFilters.__doc__]
objectNameChanged
parent parent(self) -> PySide2.QtCore.QObject [extrait de parent.__doc__]
refresh(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) refresh(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) [extrait de refresh.__doc__]
remove(self, index: PySide2.QtCore.QModelIndex) -> bool remove(self, index: PySide2.QtCore.QModelIndex) -> bool [extrait de remove.__doc__]
resolveSymlinks(self) -> bool resolveSymlinks(self) -> bool [extrait de resolveSymlinks.__doc__]
rmdir(self, index: PySide2.QtCore.QModelIndex) -> bool rmdir(self, index: PySide2.QtCore.QModelIndex) -> bool [extrait de rmdir.__doc__]
Roles
rowCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int rowCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int [extrait de rowCount.__doc__]
rowsAboutToBeInserted
rowsAboutToBeMoved
rowsAboutToBeRemoved
rowsInserted
rowsMoved
rowsRemoved
setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.EditRole) -> bool setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.EditRole) -> bool [extrait de setData.__doc__]
setFilter(self, filters: PySide2.QtCore.QDir.Filters) setFilter(self, filters: PySide2.QtCore.QDir.Filters) [extrait de setFilter.__doc__]
setIconProvider(self, provider: PySide2.QtWidgets.QFileIconProvider) setIconProvider(self, provider: PySide2.QtWidgets.QFileIconProvider) [extrait de setIconProvider.__doc__]
setLazyChildCount(self, enable: bool) setLazyChildCount(self, enable: bool) [extrait de setLazyChildCount.__doc__]
setNameFilters(self, filters: typing.Sequence[str]) setNameFilters(self, filters: typing.Sequence[str]) [extrait de setNameFilters.__doc__]
setReadOnly(self, enable: bool) setReadOnly(self, enable: bool) [extrait de setReadOnly.__doc__]
setResolveSymlinks(self, enable: bool) setResolveSymlinks(self, enable: bool) [extrait de setResolveSymlinks.__doc__]
setSorting(self, sort: PySide2.QtCore.QDir.SortFlags) setSorting(self, sort: PySide2.QtCore.QDir.SortFlags) [extrait de setSorting.__doc__]
sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder = PySide2.QtCore.Qt.SortOrder.AscendingOrder) sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder = PySide2.QtCore.Qt.SortOrder.AscendingOrder) [extrait de sort.__doc__]
sorting(self) -> PySide2.QtCore.QDir.SortFlags sorting(self) -> PySide2.QtCore.QDir.SortFlags [extrait de sorting.__doc__]
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions [extrait de supportedDropActions.__doc__]

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

__init_subclass__, __subclasshook__, beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canDropMimeData, canFetchMore, changePersistentIndex, changePersistentIndexList, checkIndex, CheckIndexOption, CheckIndexOptions, createIndex, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, fetchMore, hasIndex, insertColumn, insertColumns, insertRow, insertRows, itemData, LayoutChangeHint, match, moveColumn, moveColumns, moveRow, moveRows, persistentIndexList, removeColumn, removeColumns, removeRow, removeRows, resetInternalData, revert, roleNames, setHeaderData, setItemData, sibling, 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, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

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

__init_subclass__, __subclasshook__

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

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