So, I am in a confuzzled state of mind right now. I have a Qt program running with a GUI thread and a communication thread. The communication thread can change up elements in the GUI thread, but I am stuck with QPixMaps. They can't be changed outside of the GUI thread. So, my question: How would I set a label's pixmap outside? Would QEvents work? (No idea on how to use them)
http://doc.qt.nokia.com/latest/threads.html

FYI, your background thread that modifies the GUI is almost certainly wrong. I don't think QT's UI is thread safe. I'm actually almost positive it isn't, I don't know of any UI toolkit that is thread safe.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement