当前位置:
代码迷
>>
QT开发
>> Qt 怎么判断某个文件夹处于打开状态
详细解决方案
Qt 怎么判断某个文件夹处于打开状态
热度:
8
发布时间:
2016-04-25 03:34:00.0
Qt 如何判断某个文件夹处于打开状态?
如题。
QProcess::startDetached("explorer "+ path);如果path已经打开,那么就直接激活窗口
分享到:
------解决方案--------------------
//这个是检查路径是否存在的
QDir dir;
if (dir.exists(path))
{
}
//这个是检查程序是否运行
int nState = process.state();
if (nState == QProcess::Running)
{
}
查看全文
相关解决方案