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
Forum Updated to NodeBB v4.3 + New Features

Path of .glb in html file Qt WebView

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 758 Views 1 Watching
  • 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 1 Dec 2018, 07:35 last edited by filipdns 12 Jan 2018, 07:35
    #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

    J 1 Reply Last reply 3 Dec 2018, 06:52
    0
    • F filipdns
      1 Dec 2018, 07:35

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 3 Dec 2018, 06:52 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 3 Dec 2018, 10:57
      0
      • J jsulm
        3 Dec 2018, 06:52

        @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 3 Dec 2018, 10:57 last edited by
        #3

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

        J 1 Reply Last reply 3 Dec 2018, 11:01
        0
        • F filipdns
          3 Dec 2018, 10:57

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 3 Dec 2018, 11:01 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

          4/4

          3 Dec 2018, 11:01

          • Login

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