Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.15.1
-
None
Description
Consider this codefile `Test.qml`:
import QtQuick 2.15 import MyModule 0.1 Item { component InlineCmpt: Text { text: JSMod.formatText("does not work") } InlineCmpt {} Text { text: JSMod.formatText("works") } }
MyModule is a QML module that defines a javascript module JSMod.
JSMod contains a function `formatText` that I want to use inside my inline component.
This code fails at runtime with the message that JSMod is undefined inside `InlineCmpt`