Tell me, please, how to open a file with the extension .pdf
I tried using QDesktopServices :: openUrl (QUrl (QUrl :: fromLocalFile ("/ home / Proverka.pdf")))); , but I get an error “static bool QDesktopServices :: openUrl (const QUrl &): The platform plugin does not support services.”
Using the class QPrintPreviewDialog, I also tried, but did not work.
thanks in advance
PDF is a proprietary format that is owned by Adobe. If you have a Windows, Mac or Linux system you can download the Adobe Acrobat reader. QNX is not supported by Adobe. The PDF format is well known and there are alternative programs that will display PDF files, example OSX Preview.
There is a Photon PDF viewer. I don’t recall who wrote it but. It is not supported as far as I know but it does seem to do a good job. I’ve used it in systems where the user needed to view documentation files. If you would like it, send me an email at email@example.com and I will put together an archive with the source.
Note: like anything Photon related, this will not work in any future version of QNX, eg. 6.6 or 7.0.