使用QDesktopServices类
实现功能:
软件路径通过浏览按钮打开资源管理器选择
头文件为:
#include <QDesktopServices>
使用方法:
QDesktopServices::openUrl(QUrl("file:///C:/Documents and Settings/All Users/Desktop", QUrl::TolerantMode));
其他接口
QString displayName ( StandardLocation type )
bool openUrl ( const QUrl & url )
void setUrlHandler ( const QString & scheme, QObject * receiver, const char * method )
QString storageLocation ( StandardLocation type )
void unsetUrlHandler ( const QString & scheme )