Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Open a PDF file from a QT app for IOS
I try to open a file PDF (with acrobat reader) from a button in QT app.
My code :
FichierMenu = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/File1.pdf";
The same code for android app is OK, but it does not work in IOS.
The message in debug is :
This plugin does not support QPlatformServices::openDocument() for 'file:///var/mobile/Containers/Data/Application/02D20ECB-C523-4A45-828B-BF0513D37BCF/Documents/File1.pdf'.
What is the problem ?
And what is the solution ?
What version of Qt are you using ?
It's QT Creator 3.5.1
Clang 6.1 Apple 64 bits
X Code version 7.2
Monasys last edited by
Looks like this feature has not been yet implemented for iOS.
I saw on the web that use QML on iphone works to open a file in an external application.
Can you confirm this ? I do not know QML and would not waste time to implement an ineffective solution.
If you have other ideas, even wacky, tell me please.
Thanks in advance.
Sounds like Qt.openUrlExternally, right ?