QDirModel

PyQt5.QtWidgets.QDirModel

Inherits from QAbstractItemModel.

Description

TODO

Enums

Roles

TODO

Member

Value

Description

FileIconRole

TODO

TODO

FileNameRole

TODO

TODO

FilePathRole

TODO

TODO

Methods

__init__(parent: QObject = None)

TODO


__init__(Iterable[str], Union[Filters, Filter], Union[SortFlags, SortFlag], parent: QObject = None)

TODO


columnCount(parent: QModelIndex = QModelIndex()) → int

TODO


data(QModelIndex, role: int = DisplayRole) → Any

TODO


dropMimeData(QMimeData, DropAction, int, int, QModelIndex) → bool

TODO


fileIcon(QModelIndex) → QIcon

TODO


fileInfo(QModelIndex) → QFileInfo

TODO


fileName(QModelIndex) → str

TODO


filePath(QModelIndex) → str

TODO


filter() → Filters

TODO


flags(QModelIndex) → ItemFlags

TODO


hasChildren(parent: QModelIndex = QModelIndex()) → bool

TODO


headerData(int, Orientation, role: int = DisplayRole) → Any

TODO


iconProvider() → QFileIconProvider

TODO


index(str, column: int = 0) → QModelIndex

TODO


index(int, int, parent: QModelIndex = QModelIndex()) → QModelIndex

TODO


isDir(QModelIndex) → bool

TODO


isReadOnly() → bool

TODO


lazyChildCount() → bool

TODO


mimeData(Iterable[QModelIndex]) → QMimeData

TODO


mimeTypes() → List[str]

TODO


mkdir(QModelIndex, str) → QModelIndex

TODO


nameFilters() → List[str]

TODO


parent() → QObject

TODO


parent(QModelIndex) → QModelIndex

TODO


refresh(parent: QModelIndex = QModelIndex())

TODO


remove(QModelIndex) → bool

TODO


TODO


rmdir(QModelIndex) → bool

TODO


rowCount(parent: QModelIndex = QModelIndex()) → int

TODO


setData(QModelIndex, Any, role: int = EditRole) → bool

TODO


setFilter(Union[Filters, Filter])

TODO


setIconProvider(QFileIconProvider)

TODO


setLazyChildCount(bool)

TODO


setNameFilters(Iterable[str])

TODO


setReadOnly(bool)

TODO


TODO


setSorting(Union[SortFlags, SortFlag])

TODO


sort(int, order: SortOrder = AscendingOrder)

TODO


sorting() → SortFlags

TODO


supportedDropActions() → DropActions

TODO