If you have the Gui Programming with Qt3 book take a look at chapter 17, especially "Communicating with the GUI Thread".
In a few words you can create a custom event that will have as a public member the array you want to send to the gui thread. Then whenever you want the gui to accept data you send the new event to the gui's enent handler from the worker thread using and the array can then be handled from your gui thread.
EDIT: Funny... Check out what happens if I don't wrap in [C O D E] tags: QApplication:ostEvent()
EDIT2: With all this previewing and editing my post became obsolete. Anyway since you got the same answer twice it means that this is the way to go![]()
Bookmarks