Qt怎么获取文件所在的磁盘空间大小呢?
首先要包含头文件 #include <windows.h>
然后话不多说直接上代码吧~
static inline quint64 getFreeSpace(const QString& fullPath)
{
if (QChar(':') == fullPath[1])
{
Qt怎么获取文件所在的磁盘空间大小呢?
首先要包含头文件 #include <windows.h>
然后话不多说直接上代码吧~
static inline quint64 getFreeSpace(const QString& fullPath)
{
if (QChar(':') == fullPath[1])
{
2841
812
969
779

被折叠的 条评论
为什么被折叠?