Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
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 ^^^^^
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-113150 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
555359,8 | qmlsc: Support Math static properties | dev | qt/qtdeclarative | Status: NEW | +2 | 0 |