View Single Post
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#15
Originally Posted by Markkyboy View Post
Code:
if (weather.windDirection=0) windDirectionText='N';
Shouldn't the test in the if be done using the comparison operator '==' (or '===' as QtCreator usually proposes when editing QML for a reason I forgot), and not the assignement operator '=' ?

And by the way, what do you do with the variable 'windDirectionText' ? I can't see it used anywhere except for setting its value ?
 

The Following 2 Users Say Thank You to Zeta For This Useful Post: