QFileSystemModel Class Reference
[QtGui module]
Inherits QAbstractItemModel.
Types
- enum Roles { FileIconRole, FilePathRole, FileNameRole, FilePermissions }
Methods
- __init__ (self, QObject parent = None)
- bool canFetchMore (self, QModelIndex)
- int columnCount (self, QModelIndex parent = QModelIndex())
- QVariant data (self, QModelIndex, int role = Qt.DisplayRole)
- bool dropMimeData (self, QMimeData, Qt.DropAction, int, int, QModelIndex)
- bool event (self, QEvent)
- fetchMore (self, QModelIndex)
- QIcon fileIcon (self, QModelIndex)
- QFileInfo fileInfo (self, QModelIndex)
- QString fileName (self, QModelIndex)
- QString filePath (self, QModelIndex)
- QDir.Filters filter (self)
- Qt.ItemFlags flags (self, QModelIndex)
- bool hasChildren (self, QModelIndex parent = QModelIndex())
- QVariant headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
- QFileIconProvider iconProvider (self)
- QModelIndex index (self, int, int, QModelIndex parent = QModelIndex())
- QModelIndex index (self, QString, int column = 0)
- bool isDir (self, QModelIndex)
- bool isReadOnly (self)
- QDateTime lastModified (self, QModelIndex)
- QMimeData mimeData (self, list-of-QModelIndex)
- QStringList mimeTypes (self)
- QModelIndex mkdir (self, QModelIndex, QString)
- QVariant myComputer (self, int role = Qt.DisplayRole)
- bool nameFilterDisables (self)
- QStringList nameFilters (self)
- QModelIndex parent (self, QModelIndex)
- QFile.Permissions permissions (self, QModelIndex)
- bool remove (self, QModelIndex)
- bool resolveSymlinks (self)
- bool rmdir (self, QModelIndex)
- QDir rootDirectory (self)
- QString rootPath (self)
- int rowCount (self, QModelIndex parent = QModelIndex())
- bool setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
- setFilter (self, QDir.Filters)
- setIconProvider (self, QFileIconProvider)
- setNameFilterDisables (self, bool)
- setNameFilters (self, QStringList)
- setReadOnly (self, bool)
- setResolveSymlinks (self, bool)
- QModelIndex setRootPath (self, QString)
- int size (self, QModelIndex)
- sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
- Qt.DropActions supportedDropActions (self)
- timerEvent (self, QTimerEvent)
- QString type (self, QModelIndex)
Qt Signals
Detailed Description
Type Documentation
QFileSystemModel.Roles
Method Documentation
QFileSystemModel.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QFileSystemModel.canFetchMore (self, QModelIndex)
int QFileSystemModel.columnCount (self, QModelIndex parent = QModelIndex())
QVariant QFileSystemModel.data (self, QModelIndex, int role = Qt.DisplayRole)
bool QFileSystemModel.event (self, QEvent)
QFileSystemModel.fetchMore (self, QModelIndex)
QIcon QFileSystemModel.fileIcon (self, QModelIndex)
QString QFileSystemModel.fileName (self, QModelIndex)
QString QFileSystemModel.filePath (self, QModelIndex)
QDir.Filters QFileSystemModel.filter (self)
bool QFileSystemModel.hasChildren (self, QModelIndex parent = QModelIndex())
QVariant QFileSystemModel.headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
QFileIconProvider QFileSystemModel.iconProvider (self)
QModelIndex QFileSystemModel.index (self, int, int, QModelIndex parent = QModelIndex())
QModelIndex QFileSystemModel.index (self, QString, int column = 0)
bool QFileSystemModel.isDir (self, QModelIndex)
bool QFileSystemModel.isReadOnly (self)
QMimeData QFileSystemModel.mimeData (self, list-of-QModelIndex)
QStringList QFileSystemModel.mimeTypes (self)
QVariant QFileSystemModel.myComputer (self, int role = Qt.DisplayRole)
bool QFileSystemModel.nameFilterDisables (self)
QStringList QFileSystemModel.nameFilters (self)
bool QFileSystemModel.remove (self, QModelIndex)
bool QFileSystemModel.resolveSymlinks (self)
bool QFileSystemModel.rmdir (self, QModelIndex)
QDir QFileSystemModel.rootDirectory (self)
QString QFileSystemModel.rootPath (self)
int QFileSystemModel.rowCount (self, QModelIndex parent = QModelIndex())
bool QFileSystemModel.setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
QFileSystemModel.setFilter (self, QDir.Filters)
QFileSystemModel.setIconProvider (self, QFileIconProvider)
QFileSystemModel.setNameFilterDisables (self, bool)
QFileSystemModel.setNameFilters (self, QStringList)
QFileSystemModel.setReadOnly (self, bool)
QFileSystemModel.setResolveSymlinks (self, bool)
QModelIndex QFileSystemModel.setRootPath (self, QString)
int QFileSystemModel.size (self, QModelIndex)
QFileSystemModel.sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
Qt.DropActions QFileSystemModel.supportedDropActions (self)
QFileSystemModel.timerEvent (self, QTimerEvent)
QString QFileSystemModel.type (self, QModelIndex)
Qt Signal Documentation
void directoryLoaded (const QString&)
This is the default overload of this signal.
void fileRenamed (const QString&,const QString&,const QString&)
This is the default overload of this signal.
void rootPathChanged (const QString&)
This is the default overload of this signal.