Not able to import remote javascript file in QML



  • 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



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

    Thanks,
    Rohit


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.