Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
4.7.4
-
None
Description
When using true as a condition for the when clause of a State, QML fails with an Unsupported type error and doesn't load the file.
If put in parenthesis (i.e. (true)), it works.
import QtQuick 1.0 Rectangle { width: 360 height: 360 color: "blue"; states: [State { name: "test"; when: true; }] }
The problem is also here when using 1 or 0.
Attachments
For Gerrit Dashboard: QTBUG-21551 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
30170,1 | Support non-JavaScript expression literals as when conditions in States | master | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |