[Qt-interest] Finding default programme for file type
yogesh upreti
yogesh.upreti at gmail.com
Fri Aug 6 10:50:57 CEST 2010
Hi Andre/Christian,
Yes I have to open a txt file. I will have a look into openUrl() method,
maybe this will solve the work.
But is there a Api that access registry key? May be there I can find
software attached to my type of file extension.
Because I have text files but not always the extension is .txt
Thanks
Yogesh Upreti
On Fri, Aug 6, 2010 at 10:26 AM, Andre Somers <andre at familiesomers.nl>wrote:
> Op Vr, 6 augustus, 2010 10:17 am, schreef yogesh upreti:
> > Hi Jaco,
> > Thanks for reply. But I think then if there is no programme defined, it
> > will
> > out a "choose programme to open this file" dialog.
> > But what I really wat to do is, Open the file with defined programme and
> > if
> > there is no programme defined then open it with Notepad++
> >
> > Thanks
> > Yogesh Upreti
> >
> Since Notepad++ is an editor, you are talking about a text file, right?
> There is always a text editor installed on windows (notepad.exe and
> wordpad.exe), so openUrl() should always open the file in an editor.
>
> André
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100806/30feb64f/attachment.html
More information about the Qt-interest-old
mailing list