-
Technical task
-
Resolution: Unresolved
-
P2: Important
Code
import QtQuick Window { width: 640 height: 480 visible: true title: currentDate.getFullYear() readonly property date currentDate: new Date() }
Compiler output
Warning: main.qml:7:24: Could not compile binding for title: Cannot generate efficient code for call to untyped JavaScript function [compiler] title: currentDate.getFullYear() ^^^^^^^^^^^ Warning: main.qml:9:45: Could not compile binding for currentDate: Cannot generate efficient code for Construct [compiler] readonly property date currentDate: new Date() ^^^^
For Gerrit Dashboard: QTBUG-111624 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
493009,10 | QmlCompiler: Allow construction of Date objects | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
493142,3 | QmlCompiler: Do not coerce numbers to strings | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
523853,3 | QmlCompiler: Do not coerce numbers to strings | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
525109,4 | QmlCompiler: Do not coerce numbers to strings | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
526322,3 | QtQml: Convert types correctly in StoreNameSloppy | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
526878,2 | Do not coerce numbers to strings | tqtc/lts-6.2 | qt/tqtc-qmlcompilerplus | Status: MERGED | +2 | 0 |