How to detect if PDF reader is installed
-
From my application, it can auto-open a PDF file. This is works fine as long as the user has a PDF reader installed on his PC. I'd like to detect if this is the case so I can show a warning message if it's not ("Please install PDF reader in order to read PDF files...). Does Qt provide a means to detect this?
Thanks inadvance. -
I have an idea which is dectect the installed software in the computer first, then search the pdf reader name.
But I don't know whether Qt have the funtion to dectect the installed software. -
Hi,
No it doesn't but AFAIK, most OSes shows this kind of dialog when trying to open a file of unsupported format.
How are you opening your PDF ?
-
Hi,
No it doesn't but AFAIK, most OSes shows this kind of dialog when trying to open a file of unsupported format.
How are you opening your PDF ?
@SGaist
I use the QWebview to load the path of a PDF file, beacuse Adobe Reader could open PDF in browser.