Quote Originally Posted by summer_of_69 View Post
"You are calling a method on the thread object from the main thread"

I didn't get this.
The context of execution is based not on the thread affinity of the object (which is also living in the main thread so this doesn't change anything but for a moment let's assume it does) containing the called method but on the affinity of the object calling the method. So if you are calling the method from your main window, it will be executed in the context of the thread running your main window (which is the main thread) and your gui will get blocked.

I don't know what your acceptEvent() method does but unless it calls QCoreApplication:ostEvent() you're using a synchronous call which is again done in the context of the calling thread and blocks your gui because it is your gui thread that makes the call.

Quote Originally Posted by talk2amulya View Post
try changing your thread's affinity by using moveToThread like this:

Qt Code:
  1. myOtherThread->moveToThread(myOtherThread);
To copy to clipboard, switch view to plain text mode 
This will change exactly nothing, unless of course postEvent() is used by acceptEvent().