Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
Description
Thinking I was prudent by using JavaScript's tripple-equal, I found the property
types available in QML are not JS type-compatible.
property bool testBool: true MouseArea { anchors.fill: parent onClicked: { if( testBool === true ) print("True!"); else if( testBool === false ) print("False!"); else print("Unknown!") } }
Same thing is true for built-in properties (e.g. replace "testBool" above with "pressed").