Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

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

$
0
0
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!

Viewing all articles
Browse latest Browse all 4972

Trending Articles