QDesktopServices提供了一些系统相关的功能。
打开桌面上的1.mp4视频文件
QDesktopServices::openUrl(QUrl("file:////Users/Biao/Desktop/1.mp4"));
The openUrl() function is used to open files located at arbitrary URLs in external applications. For URLs that correspond to resources on the local filing system (where the URL scheme is "file"), a suitable application will be used to open the file; otherwise, a web browser will be used to fetch and display the file.
@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);