Quote Originally Posted by jpn View Post
What are you trying to do? You must not touch GUI in a worker thread:
just gave a guess but didnt try it this way...
i made something like this

Qt Code:
  1. class SerialThread : public QThread
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. SerialThread(QObject *mainGUI, QObject *parent = 0)
  7. {
  8. GUI=mainGUI;
  9. }
  10.  
  11. protected:
  12. void run()
  13. {
  14. connect(GUI,SIGNAL(),this,SLOT());
  15. exec();
  16. }
  17.  
  18. private:
  19. QObject *GUI;
  20.  
  21. (...)
  22. };
To copy to clipboard, switch view to plain text mode 
and while creating a thread

Qt Code:
  1. SerialThread *thread=new SerialThread(this);
To copy to clipboard, switch view to plain text mode