逛奔的蜗牛

我不聪明,但我会很努力

   ::  :: 新随笔 ::  ::  :: 管理 ::
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);
posted on 2011-11-04 14:29 逛奔的蜗牛 阅读(1294) 评论(0)  编辑 收藏 引用 所属分类: Qt