Using events.
That's correct.I have a simple gui that creates and then launches a thread (derived from QThread). The thread does some continuous processing and remains for the life of the gui. In order for the thread to communicate with the gui, I use postevent -- which, as I understand, is the correct way for a thread to communicate with the gui.
Basically, you can't. You can only use mutexes and a shared variable. Hard to call that "communication" though.However, I am not sure how to safely communicate from the gui to the thread.






Reply With Quote


Bookmarks