[Qt-interest] Default application for Mime type

Jason Wood jason at rtsw.co.uk
Tue Feb 10 18:02:06 CET 2009


On Tuesday 10 February 2009 16:24, Christopher Rasch-Olsen Raa wrote:
> Tirsdag 10 februar 2009 17:09:37 skrev Jason Wood:
> >
> > 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.
>
> You could look into QDesktopServices::openUrl().

Thank you, that is exactly what I am looking for!

Cheers,
Jason



More information about the Qt-interest-old mailing list