Re: [Interest] QML type checking quirk

2015-10-26 Thread Daniel França
My guess is that the error message comes in a much earlier step in compilation, in a static analysis when parsing QML. When there's an expression it can't do this kind of check in compile time and then the javascript implicit conversion works as a charm and your code works. Em dom, 25 de out de 20

[Interest] QML type checking quirk

2015-10-25 Thread Sze Howe Koh
I just found out (during the discussion at https://forum.qt.io/topic/60021 ) that the following items all give a height of 100: // Initialization assignment height: 100 height: "10" + "0" height: "10" + 0 height: 10 + "0" // Imperative assignment height = "100" Howev