How to open a Pdf file from Qt
Hi All,
I m using Qt 4.2.2 on my Intel Mac.
I have a PDF file in the Resource File and I have a Button on ToolBar say Open.
What I want is that when I click the Open button the PDF file Should be open in its default application Preview in case of Mac.
If anybody knows then plz help me.
Thanks.
Re: How to open a Pdf file from Qt
I don't think you can open a file from a resource using the default system handler. You'd have to extract the file to a real file first and then use QDesktopServices::openUrl.
Re: How to open a Pdf file from Qt
Thnaks.
Yes Now I m able to do that.