Externaly open local HTML file
Solved
QML and Qt Quick
-
wrote on 31 May 2018, 14:29 last edited by DavidM29
Hello,
I would like to open a local HTML file on the computer web browser.
But I don't know how to achieve this. Can somebody help me ?
I tried this :Qt.openUrlExternally("help.html")
but it does not work : here is the error message I have :
ShellExecute 'qrc:/help.html' failed
-
Hello,
I would like to open a local HTML file on the computer web browser.
But I don't know how to achieve this. Can somebody help me ?
I tried this :Qt.openUrlExternally("help.html")
but it does not work : here is the error message I have :
ShellExecute 'qrc:/help.html' failed
wrote on 31 May 2018, 17:07 last edited by@DavidM29 it seems you need to fully qualify the page you want to open.
Qt.openUrlExternally("http://some-server-name-or-ip/help.html")
or
Qt.openUrlExternally("file:///path/to/help.html")
-
Hello,
I would like to open a local HTML file on the computer web browser.
But I don't know how to achieve this. Can somebody help me ?
I tried this :Qt.openUrlExternally("help.html")
but it does not work : here is the error message I have :
ShellExecute 'qrc:/help.html' failed
-
wrote on 1 Jun 2018, 05:46 last edited by DavidM29 6 Jan 2018, 06:37
4/4