Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
bd6df61c8 (dev)
Description
Code
import QtQuick Window { width: 200 * Math.PI height: 200 * Math.SQRT2 visible: true }
Compiler output
Warning: Main.qml: Object type Math is not derived from QObject or QQmlComponent. You may need to fully qualify all names in C++ so that moc can see them. You may also need to add qt_extract_metatypes(<target containing >). [compiler] Warning: Main.qml:4:20: Could not compile binding for width: Cannot generate efficient code for lookup in QJSValue [compiler] width: 200 * Math.PI ^^ Warning: Main.qml: Object type Math is not derived from QObject or QQmlComponent. You may need to fully qualify all names in C++ so that moc can see them. You may also need to add qt_extract_metatypes(<target containing >). [compiler] Warning: Main.qml:5:21: Could not compile binding for height: Cannot generate efficient code for lookup in QJSValue [compiler] height: 200 * Math.SQRT2 ^^^^^