Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.5.0, 6.6
-
None
Description
Using some Lib.js
.pragma library
function foo() {
console.log("foo() called")
}
, exported by
set_source_files_properties(Lib.js PROPERTIES QT_QML_SOURCE_TYPENAME Lib)
and called via
Lib.foo()
always runs into
Warning: main.qml:11:9: Could not compile binding for onCompleted: Cannot generate efficient code for script lookup [compiler] Lib.foo() ^^^
.
What can I do to make it "efficient" and get rid of that message?