Qt 打开文件夹

来源:互联网 发布:百度自动营销软件 编辑:程序博客网 时间:2024/06/06 16:27

QDesktopServices::openUrl(QUrl("file:///C:/Documents and Settings/All Users", QUrl::TolerantMode));

QProcess::execute("explorer c:\\"); 只适用windows

不晓得第二种为啥有时候不能正确打开文件夹。难道windows的explorer.exe挂了。

原创粉丝点击