Hi,
It seems if my QML code using enum exposed to QML does not get compiled by qmlsc, then enum is undefined. Is this expected behavior?
See the attached example:
- using only import QtQuick.Controls instead of import QtQuick.Controls.Basic, then I cannot use the enums in onClicked of Button.
- if I put NO_CACHEGEN option in qt_add_qml_module() then all enums are undefined.
Thanks.
For Gerrit Dashboard: QTBUG-118089 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
512617,3 | QmlCompiler: Disallow reading enums from instances | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
513614,2 | QmlCompiler: Disallow reading enums from instances | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
513874,3 | QmlCompiler: Disallow reading enums from instances | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
514263,1 | QmlCompiler: Disallow reading enums from instances | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |
515080,2 | Disallow reading enums from instances | tqtc/lts-6.2 | qt/tqtc-qmlcompilerplus | Status: MERGED | +2 | 0 |