PythonQt.QtGui.QDirModel · declarations 002
Back to PythonQt.QtGui.QDirModel
refresh
refresh(parent: Any) -> None
X.refresh(parent)
Supplemental documentation: Qt 5 reference:
[slot] void QDirModel::refresh(const QModelIndex \&parent \= QModelIndex())
QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).
Upstream PySide2 reference signatures (binding differences may apply):
refresh(self, parent: PySide2.QtCore.QModelIndex=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#refresh
remove
remove(index: Any) -> bool
X.remove(index) -> bool
Supplemental documentation: Qt 5 reference:
bool QDirModel::remove(const QModelIndex \&index)
Removes the model item index from the directory model and deletes the corresponding file from the file system, returning true if successful. If the item cannot be removed, false is returned.
Warning: This function deletes files from the file system; it does not move them to a location where they can be recovered.
See also rmdir().
Upstream PySide2 reference signatures (binding differences may apply):
remove(self, index: PySide2.QtCore.QModelIndex) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#remove
resolveSymlinks
instance-attribute
resolveSymlinks: bool
Qt 5 reference:
resolveSymlinks : bool
This property holds whether the directory model should resolve symbolic links
This is only relevant on operating systems that support symbolic links.
Access functions:
| bool | resolveSymlinks() const |
|---|---|
| void | setResolveSymlinks(bool enable) |
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#resolveSymlinks
rmdir
rmdir(index: Any) -> bool
X.rmdir(index) -> bool
Supplemental documentation: Qt 5 reference:
bool QDirModel::rmdir(const QModelIndex \&index)
Removes the directory corresponding to the model item index in the directory model and deletes the corresponding directory from the file system, returning true if successful. If the directory cannot be removed, false is returned.
Warning: This function deletes directories from the file system; it does not move them to a location where they can be recovered.
See also remove().
Upstream PySide2 reference signatures (binding differences may apply):
rmdir(self, index: PySide2.QtCore.QModelIndex) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#rmdir
rowCount
rowCount(parent: Any) -> int
X.rowCount(parent) -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QDirModel::rowCount(const QModelIndex \&parent \= QModelIndex()) const
Reimplements: QAbstractItemModel::rowCount(const QModelIndex \&parent) const.
Returns the number of rows in the parent model item.
Upstream PySide2 reference signatures (binding differences may apply):
rowCount(self, parent: PySide2.QtCore.QModelIndex=...) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#rowCount
rowsAboutToBeInserted
rowsAboutToBeInserted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDirModel.rowsAboutToBeInserted; argument details are not documented.
rowsAboutToBeMoved
rowsAboutToBeMoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDirModel.rowsAboutToBeMoved; argument details are not documented.
rowsAboutToBeRemoved
rowsAboutToBeRemoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDirModel.rowsAboutToBeRemoved; argument details are not documented.
rowsInserted
rowsInserted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDirModel.rowsInserted; argument details are not documented.
rowsMoved
rowsMoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDirModel.rowsMoved; argument details are not documented.
rowsRemoved
rowsRemoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDirModel.rowsRemoved; argument details are not documented.
setData
setData(index: Any, value: Any, role: int) -> bool
X.setData(index, value, role) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QDirModel::setData(const QModelIndex \&index, const QVariant \&value, int role \= Qt::EditRole)
Reimplements: QAbstractItemModel::setData(const QModelIndex \&index, const QVariant \&value, int role).
Sets the data for the model item index with the given role to the data referenced by
the value. Returns true if successful; otherwise returns false.
See also data() and Qt::ItemDataRole.
Upstream PySide2 reference signatures (binding differences may apply):
setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setData
setFilter
setFilter(filters: Any) -> None
X.setFilter(filters)
Supplemental documentation: Qt 5 reference:
void QDirModel::setFilter(QDir::Filters filters)
Sets the directory model's filter to that specified by filters.
Note that the filter you set should always include the QDir::AllDirs enum value, otherwise QDirModel won't be able to read the directory structure.
See also filter() and QDir::Filters.
Upstream PySide2 reference signatures (binding differences may apply):
setFilter(self, filters: PySide2.QtCore.QDir.Filters) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setFilter
setIconProvider
setIconProvider(provider: Any) -> None
X.setIconProvider(provider)
Supplemental documentation: Qt 5 reference:
void QDirModel::setIconProvider(QFileIconProvider *provider)
Sets the provider of file icons for the directory model.
See also iconProvider().
Upstream PySide2 reference signatures (binding differences may apply):
setIconProvider(self, provider: PySide2.QtWidgets.QFileIconProvider) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setIconProvider
setLazyChildCount
setLazyChildCount(enable: bool) -> None
X.setLazyChildCount(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setLazyChildCount(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setLazyChildCount
setNameFilters
setNameFilters(filters: Any) -> None
X.setNameFilters(filters)
Supplemental documentation: Qt 5 reference:
void QDirModel::setNameFilters(const QStringList \&filters)
Sets the name filters for the directory model.
See also nameFilters().
Upstream PySide2 reference signatures (binding differences may apply):
setNameFilters(self, filters: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setNameFilters
setReadOnly
setReadOnly(enable: bool) -> None
X.setReadOnly(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setReadOnly(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setReadOnly
setResolveSymlinks
setResolveSymlinks(enable: bool) -> None
X.setResolveSymlinks(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setResolveSymlinks(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setResolveSymlinks
setSorting
setSorting(sort: Any) -> None
X.setSorting(sort)
Supplemental documentation: Qt 5 reference:
void QDirModel::setSorting(QDir::SortFlags sort)
Sets the directory model's sorting order to that specified by sort.
See also sorting() and QDir::SortFlags.
Upstream PySide2 reference signatures (binding differences may apply):
setSorting(self, sort: PySide2.QtCore.QDir.SortFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#setSorting
sibling
sibling(row: Any, column: Any, idx: Any) -> Any
X.sibling(row, column, idx) -> PythonQt.QtCore.QModelIndex
sort
sort(column: int, order: Any) -> None
X.sort(column, order)
Supplemental documentation: Qt 5 reference:
[override virtual] void QDirModel::sort(int column, Qt::SortOrder order \= Qt::AscendingOrder)
Reimplements: QAbstractItemModel::sort(int column, Qt::SortOrder order).
Sort the model items in the column using the order given. The order is a value defined in Qt::SortOrder.
Upstream PySide2 reference signatures (binding differences may apply):
sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#sort
sorting
sorting() -> Any
X.sorting()
Supplemental documentation: Qt 5 reference:
QDir::SortFlags QDirModel::sorting() const
Returns the sorting method used for the directory model.
See also setSorting() and QDir::SortFlags.
Upstream PySide2 reference signatures (binding differences may apply):
sorting(self) -> PySide2.QtCore.QDir.SortFlags
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#sorting
supportedDropActions
supportedDropActions() -> Any
X.supportedDropActions()
Supplemental documentation: Qt 5 reference:
[override virtual] Qt::DropActions QDirModel::supportedDropActions() const
Reimplements: QAbstractItemModel::supportedDropActions() const.
Returns the drop actions supported by this model.
See also Qt::DropActions.
Upstream PySide2 reference signatures (binding differences may apply):
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions
Source: https://doc.qt.io/archives/qt-5.15/qdirmodel.html#supportedDropActions