• 4262阅读
  • 1回复

如何判断一个文件是不是只读属性??比如xls文件 [复制链接]

上一主题 下一主题
离线huyaowu
 

只看楼主 倒序阅读 楼主  发表于: 2010-09-08
— 本帖被 XChinux 执行加亮操作(2010-09-08) —
如何获取一个文件的属性啊?
比如想知道一个xls文件是否是只读的??
离线xtfllbl

只看该作者 1楼 发表于: 2010-09-08
bool QIODevice::isReadable () const
Returns true if data can be read from the device; otherwise returns false. Use bytesAvailable() to determine how many bytes can be read.

This is a convenience function which checks if the OpenMode of the device contains the ReadOnly flag.
上海欢迎您
快速回复
限100 字节
 
上一个 下一个