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://m.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);