QString path=QDir::currentPath();//获取程序当前目录
path.replace("/","\\");//将地址中的"/"替换为"\",因为在Windows下使用的是"\"。
QProcess::startDetached("explorer "+path);//打开上面获取的目录
or
QDesktopServices::openUrl(QUrl("file:///C:/Documents and Settings/All Users", QUrl::TolerantMode));