Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Path of .glb in html file Qt WebView

Path of .glb in html file Qt WebView

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 649 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by filipdns
    #1

    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.html

    I 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

    0_1543646477778_path.png

    jsulmJ 1 Reply Last reply
    0
    • F filipdns

      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.html

      I 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

      0_1543646477778_path.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      0
      • jsulmJ jsulm

        @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.

        F Offline
        F Offline
        filipdns
        wrote on last edited by
        #3

        @jsulm Hello jsulm, thank for this information. Then, using webview, what is the path I have to use?

        jsulmJ 1 Reply Last reply
        0
        • F filipdns

          @jsulm Hello jsulm, thank for this information. Then, using webview, what is the path I have to use?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved