Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Path of .glb in html file Qt WebView
filipdns last edited by filipdns
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:
I have in the Viewer.html the path write:
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.
filipdns last edited by
@jsulm Hello jsulm, thank for this information. Then, using webview, what is the path I have to use?
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