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. Not able to import remote javascript file in QML
Qt 6.11 is out! See what's new in the release blog

Not able to import remote javascript file in QML

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 850 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,
    I have this import statement in my code but it doesn't seem to work. qmlscene exits with code 255

    import "http://127.0.0.1:8030/testbrowser.js" as Browser

    the server is running locally on my machine and the url works fine in the browser. I do see a request being sent to my server and a response is sent back to qml too. enabling QML_IMPORT_TRACE does not show anything. What is the reason for this failure? do i need to configure something to allow this file to be downloaded?

    Thanks,
    Rohit

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      How do i enable http thread debugging for this particular import request?

      Thanks,
      Rohit

      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