Unsolved Path of .glb in html file Qt WebView
-
Hello,
I'm trying to import .glb file inside html file for webview project but it doesn't work.
the project folder is http with folder three:
http/Cesium/Apps/SampleData/models/CesiumAir/Cesium_Air.glb
http/Cesium/Apps/Samplecastle/gallery/Viewer.htmlI have in the Viewer.html the path write:
'../../../Apps/SampleData/models/CesiumAir/Cesium_Air.glb'
the same html opened in IE work fine including model, then the problem is only with WebView...
what is specific when using path with Qt WebView?
Thank you for your help
-
@filipdns My guess is that the working directory is NOT http/Cesium/Apps/Samplecastle/gallery when you use WebView, so your relative path doesn't work.
-
@jsulm Hello jsulm, thank for this information. Then, using webview, what is the path I have to use?
-
@filipdns said in Path of .glb in html file Qt WebView:
Then, using webview, what is the path I have to use?
Well, the path where the stuff is.
I don't know how you're packaging/installing/distributing your app.
How is your installation directory going to look like?
One possibility is to use a directory relative to the one where you executable is located, see http://doc.qt.io/qt-5/qstandardpaths.html#standardLocations