-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.7
-
None
-
2b336217b (dev)
It should be possible to do this:
property int i: (Anything as int) ?? 1
In both cases an int is returned and the optional can be dropped.
This does currently not work because of
(strict mode) Cannot assign potential undefined to int ...
- blocks
-
QTBUG-105539 [QML] Binding with dynamic type not compilable
-
- Reported
-
- depends on
-
QTBUG-122380 QML cannot handle "as string"
-
- Closed
-