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.