View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#626
Originally Posted by Venemo View Post
Well, of course we have!

The easiest way is using QThreadPool with a custom QRunnable implementation.

Your QRunnable's run() method would check the necessary values and refresh the UI.

The main UI window should have a QTimer and on a predefined interval, it would create a new instance of your own QRunnable and make the thread pool execute it.

Note that the thread pool has a static "global instance", so you don't have to create an instance of that, just access the global instance and make that do things for you.
Ahaaaaaaa - thats actually the first explanation that i have understood! hehehe

I did see THP did something here, that looked similar to threading / updating - but may not be suitable.

Will see if i can get some basic versions running, assuming it all works, i can't see it being too difficult to do it for all updatable values
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

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