Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.7.0, 4.7.3, 5.5.0
-
None
-
N900 PR 1.3
Description
We noticed that QML workerscript example (http://doc.qt.nokia.com/4.7-snapshot/qml-workerscript.html#details) does not work if you load files from remote server. We had a qmlengine loading example qml file (http://<domain>/<path>/worker/main.qml) and it gave error:
QFSFileEngine::open: No file name specified
WorkerScript: Cannot find source file "http://<domain>/<path>/worker/script.js"
Expected result would be that it manages to load the script.js in the same path. This assumption is based on general network transparency in QML.
It seems that the implementation is written only for the local file case: http://qt.gitorious.org/qt/qt/blobs/master/src/declarative/qml/qdeclarativeworkerscript.cpp#line305
This function is the same in master, 4.7, 4.8 and declarative-staging branches.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-19407 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
1913,6 | Allow QDeclarativeWorkerScript to load scripts from remote URLs | master | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |