QDirModel
来源:互联网 发布:大数据用什么语言最好 编辑:程序博客网 时间:2024/05/16 05:50
QDirModel
**
The QDirModel class provides a data model for the local filesystem.
The usage of QDirModel is not recommended anymore. The QFileSystemModel class is a more performant alternative.
This class provides access to the local filesystem, providing functions for renaming and removing files and directories, and for creating new directories. In the simplest case, it can be used with a suitable display widget as part of a browser or filer.
QDirModel keeps a cache with file information. The cache needs to be updated with refresh().
QDirModel can be accessed using the standard interface provided by QAbstractItemModel, but it also provides some convenience functions that are specific to a directory model. The fileInfo() and isDir() functions provide information about the underlying files and directories related to items in the model.
Directories can be created and removed using mkdir(), rmdir(), and the model will be automatically updated to take the changes into account.
This class is obsolete
官方文档不推荐使用这个类,转而使用QFileSystemModel
- QDirModel
- QDirModel--43
- model-view模型之QDirModel
- Qt学习之路(43): QDirModel
- Qt QDirModel实现文件的管理
- Qt学习之路(43): QDirModel
- Qt学习之路(43): QDirModel
- QT目录模型QDirModel的使用
- Qt QFileSystemModel QDirModel 示例代码, 使用方法
- Qt学习之路(43): QDirModel
- Qt学习之路(43): QDirModel
- Qt中使用QDirModel / QFileSystemModel + QTreeView显示Checkbox复选框
- 使用预定义模型QDirModel+Treeview的例子
- Qt学习:项视图类之QDirModel和QTreeView
- Qt编程25:QDirModel与QTreeView使用显示目录结构
- QT做一个硬盘目录视图QTreeView,QDirModel
- 基本数据类型
- 单调栈+STL——51nod1952 栈
- 图形学(5)多边形的扫描转换(下)
- ActionMode去掉返回箭头
- 数据结构_顺序表
- QDirModel
- PAT 1055. The World's Richest (25) 年龄排序问题(O(n)排序)
- LeetCode简易题解--629
- source insight常用的使用热键以及技巧
- Docker使用小结
- RT-Thread 01线程调度与管理
- I2C写设备端
- servlet实现文件下载
- SQL语句的基本常用的一些语法