QDirModel Class Reference
[QtGui module]
Inherits QAbstractItemModel.
Types
- enum Roles { FileIconRole, FilePathRole, FileNameRole }
Methods
- __init__ (self, QStringList, QDir.Filters, QDir.SortFlags, QObject parent = None)
- __init__ (self, QObject parent = None)
- int columnCount (self, QModelIndex parent = QModelIndex())
- QVariant data (self, QModelIndex, int role = Qt.DisplayRole)
- bool dropMimeData (self, QMimeData, Qt.DropAction, int, int, 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)
- bool lazyChildCount (self)
- QMimeData mimeData (self, list-of-QModelIndex)
- QStringList mimeTypes (self)
- QModelIndex mkdir (self, QModelIndex, QString)
- QStringList nameFilters (self)
- QModelIndex parent (self, QModelIndex)
- QObject parent (self)
- refresh (self, QModelIndex parent = QModelIndex())
- bool remove (self, QModelIndex)
- bool resolveSymlinks (self)
- bool rmdir (self, QModelIndex)
- int rowCount (self, QModelIndex parent = QModelIndex())
- bool setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
- setFilter (self, QDir.Filters)
- setIconProvider (self, QFileIconProvider)
- setLazyChildCount (self, bool)
- setNameFilters (self, QStringList)
- setReadOnly (self, bool)
- setResolveSymlinks (self, bool)
- setSorting (self, QDir.SortFlags)
- sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
- QDir.SortFlags sorting (self)
- Qt.DropActions supportedDropActions (self)
Detailed Description
Type Documentation
QDirModel.Roles
Method Documentation
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QDirModel.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
int QDirModel.columnCount (self, QModelIndex parent = QModelIndex())
QVariant QDirModel.data (self, QModelIndex, int role = Qt.DisplayRole)
QString QDirModel.fileName (self, QModelIndex)
QString QDirModel.filePath (self, QModelIndex)
bool QDirModel.hasChildren (self, QModelIndex parent = QModelIndex())
QVariant QDirModel.headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
QModelIndex QDirModel.index (self, int, int, QModelIndex parent = QModelIndex())
QModelIndex QDirModel.index (self, QString, int column = 0)
bool QDirModel.isDir (self, QModelIndex)
bool QDirModel.isReadOnly (self)
bool QDirModel.lazyChildCount (self)
QMimeData QDirModel.mimeData (self, list-of-QModelIndex)
The QMimeData result
QStringList QDirModel.mimeTypes (self)
QStringList QDirModel.nameFilters (self)
QObject QDirModel.parent (self)
QDirModel.refresh (self, QModelIndex parent = QModelIndex())
bool QDirModel.remove (self, QModelIndex)
bool QDirModel.resolveSymlinks (self)
bool QDirModel.rmdir (self, QModelIndex)
int QDirModel.rowCount (self, QModelIndex parent = QModelIndex())
bool QDirModel.setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
QDirModel.setFilter (self, QDir.Filters)
QDirModel.setLazyChildCount (self, bool)
QDirModel.setNameFilters (self, QStringList)
QDirModel.setReadOnly (self, bool)
QDirModel.setResolveSymlinks (self, bool)
QDirModel.setSorting (self, QDir.SortFlags)
QDirModel.sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
Qt.DropActions QDirModel.supportedDropActions (self)