I am trying to post event from a thread using postEvent() method and that should send a "custom event " to the event loop. But Somehow postEvent is not working correctly and it never called customEvent.
Any idea will be helpful.
Qt Code:
///////Header File//////// { public: CustomThreadEvent() QThread *pErase; }; /////METHOD//////////// { CustomThreadEvent *pCustomThreadEvent = new CustomThreadEvent; if ( pCustomThreadEvent) { pCustomThreadEvent->pErase = pErase; //Calling Post Event } }To copy to clipboard, switch view to plain text mode
Bookmarks