Hi,
i have a object in my UI thread and i send a pointer of this object to another thread then i emit a signal of object but connected slot don't called:

Qt Code:
  1. class MyObject : public QObject {
  2. ...
  3. void checkMyEvents() [
  4. ...
  5. emit processfinished();
  6. ...
  7. }
  8.  
  9. void start() {
  10. ...
  11. othread->start();
  12. ...
  13. }
  14. signals:
  15. void processfinished();
  16. private:
  17. MyThread* otherad;
  18. }
  19.  
  20. class MyThread : public QThread
  21. {
  22. public:
  23. void run() {
  24. ...
  25. obj->checkMyEvents();
  26. ...
  27. }
  28.  
  29. MyObject* obj;
  30. }
  31.  
  32. main() {
  33. ....
  34. MyObject obj;
  35. QObject::connect(&obj, SIGNAL(processfinished()), &anotherObj, SLOT(showresults());
  36. ....
  37. }
To copy to clipboard, switch view to plain text mode 

in debug mode i can see signals emitted but slot don't call
whats wrong in my code?