bool ok = QDesktopServices::openUrl(QUrl("c:/users/administrator/desktop/dir")); 转载于:https://www.cnblogs.com/liujx2019/p/10811741.html