PDA

View Full Version : [Solved] Open files outside my program



Nykoo
27th January 2008, 16:13
Hi all, I'd like to open a file from my Qt application, like we do when we click on a text file icon using explorer for instance. I tried with QProcess but I find it very heavy to manage (find which program should be launched according to the extension of the file, then launch the program giving it the file name as a parameter).

I'm sure there're better ways to do that (and much more classical).

I hope somebody could help me, thanks.

Edit: in fact I have to use QDesktopServices::openUrl ( const QUrl & url )