qt判断一个文件夹中是否有文件

2025-02-25 15:09:22
推荐回答(1个)
回答1:

#include 
#include 

QDir dir("文件夹路径");
if(dir.count()==2)
    qDebug()<<"文件夹为空";