Details
-
Bug
-
Resolution: Won't Do
-
P1: Critical
-
None
-
5.12.0, 5.12.1
-
macOS 10.14
Description
Using Qt.include() does not work correctly as it will give a reference error when trying to access a variable defined in it. In the attached example, when clicking on the rectangle it will give:
qrc:/bar.js:4: ReferenceError: testInteger is not defined
Instead of "42".
Attachments
Issue Links
- relates to
-
QTBUG-69408 [REG: 5.11->5.12] Javascript const variables are broken in dev
- Closed
-
QTBUG-71497 [REG: 5.11->5.12] Qt.include() does not import functions when the included script is using strict mode
- Open