Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: 5.11.0
-
Fix Version/s: 5.11.1
-
Component/s: QML: Compiler, Quick: Other
-
Labels:None
-
Commits:0a2aaee61cfc2888bc71f54ac5b165d248cbf5e8
Description
Hello,
When trying to upgrade from Qt 5.9 to Qt 5.11, with qtquickcompiler enabled, I faced a strange situation where the following code does not work properly:
.pragma library .import "TimerFactory.js" as Timers // ... Timers.setTimeout(function() { resolve(arguments) }, value.__delay);
It gives the error "ReferenceError: Timers is not defined".
I don't have this error when I disable qtquickcompiler. I still have it when I change the import to have a full path with "qrc:///" for example.
Any idea?
Regards,
Louis