QT调用Linux文件系统



前言:

  QT提供了调用文件系统的方法,非必要情况下不要自己去写,直接用就好。
  
  

QFileSystemModel

The QFileSystemModel class provides a data model for the local filesystem.

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 filter.

QFileSystemModel 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(), isDir(), fileName() and filePath()
functions provide information about the underlying files and directories related to items
in the model. Directories can b

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值