Qt.resolvedUrl from included .js file (problems in 5.2)



  • Hi,

    We just updated to 5.2 and now have some strange issues.

    I have a JS function inside a file (FileA.js) that uses Qt.resolvedUrl to then pass to Qt.createComponent to create a dynamic QML object. This JS file is being included in another JS file (FileB.js) using Qt.include. Because of this (I think) the Qt.resolvedUrl is resolving the url relative to FileB.js instead of FileA.js.

    Is there a way of preventing that so I can resolve my relative file references properly?. Am I going the wrong way about this?. It used to work properly in 5.1.1.

    Thanks a lot!



  • Maybe it has something to do with the problem I described here:
    http://qt-project.org/forums/viewthread/36213/

    For me the QT.include doesnt even work in 5.2. Maybe that is also your problem, which causes the behavior you described.



  • Hey DerMas,

    Yes, sounds similar. Something is wrong with paths when including JS files. Did you find a workaround?.

    Does anyone have any ideas what's going on?.



  • Thanks for your reply, proving this is really a problem. Unfortunately, my workaround was to downgrade to 5.1...


Log in to reply
 

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