[Qt-interest] Default application for Mime type
Christopher Rasch-Olsen Raa
christopher at technophile.info
Tue Feb 10 17:24:51 CET 2009
Tirsdag 10 februar 2009 17:09:37 skrev Jason Wood:
> Hi,
>
> I am writing a file-browser like application, and I want to find and run
> the associated application when the user double-clicks on a file.
>
> So for example, if the user double clicks a file /some/path/test.avi
>
> I want the default application that handles avi's to open (windows media
> player, mplayer, etc.)
>
> Is this information available through Qt?
>
> I found QMimeType, but that seems to be mobile-platform only.
>
> Cheers,
> Jason
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
Hi,
You could look into QDesktopServices::openUrl().
--
Christopher
More information about the Qt-interest-old
mailing list