How to display PDF file in qml
-
@dheerendra
I want to open a pdf file when i press my mouse click.
Please suggest? -
@dheerendra
I want to open a pdf file when i press my mouse click.
Please suggest?@Shubham-Gupta
you want to open (with the system's default application) or you want to display it inside an QML application?!To open it with the OS' default application use:
QDesktopServices::openUrl( QUrl::fromLocalFile("/path/to/file.pdf") ); -
@Shubham-Gupta
you want to open (with the system's default application) or you want to display it inside an QML application?!To open it with the OS' default application use:
QDesktopServices::openUrl( QUrl::fromLocalFile("/path/to/file.pdf") );@raven-worx
I am not using c++ in my code.
only qml is there.