Unsolved Open a PDF file from a QT app for IOS
-
Hi,
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";
QDesktopServices::openUrl(QUrl::fromLocalFile(FichierMenu));
...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 ?Thanks
-
Hi,
What version of Qt are you using ?
-
Hi,
It's QT Creator 3.5.1
QT 5.5.1
Clang 6.1 Apple 64 bitsX Code version 7.2
Thanks
-
-
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 ?