View Single Post
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#6
Originally Posted by Ancelad View Post
It doesn't matter if text returns numbers
Really? I stand corrected. But it means I dislike QML even more than before.

Being Old Skool, I would convert temperatureHighLabel.text to a number and work with that. It would be faster anyway if you do the conversion only once and not at the background for each comparison.

It would also give you a lovely opportunity to change the colour continuously rather than in discreet steps like in your example
__________________
Русский военный корабль, иди нахуй!

Last edited by pichlo; 2018-09-04 at 11:00.
 

The Following User Says Thank You to pichlo For This Useful Post: