View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#630
I would do it the following way:
- Create a method in the UI that calls those functions you're talking about
Done!

Then, create a class that derives from QRunnable (Let's call it Updater) and has a reference to the UI class, and in its run() method calls the method that you created above
Ok, sounds easy!

- Create a QTimer in the UI class and in its timeout(), create a new instance of the Updater class you created above, and make the global instance of QThreadPool execute it.


I would gladly post code examples, but I don't know a thing about Python , and I'm not sure whether my C++ example would be of any use to you.
Any examples will help - i'm getting used to translating examples from GTK and c++!
__________________
----------- 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: