Thread
:
Weather temperature as colour
View Single Post
pichlo
2018-09-04 , 10:54
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#
6
Originally Posted by
Ancelad
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
.
Quote & Reply
|
The Following User Says Thank You to pichlo For This Useful Post:
Amboss
pichlo
View Public Profile
Send a private message to pichlo
Find all posts by pichlo