Is MyThreadEvent a QThread?
Because if it is, then you have to call exec to start the event loop and be able to receive events.
I see that you post that event in the same class's event queue. What is the point for that?
It should be at least across threads.
And why use custom events at all when you have signals/slots and queued connections.
And about deleting a thread like that!...
If you have the receoier object, why don't you just connect the thread's finished signal to a slot in that receiver, and delete it, or whatever.
Regards




Reply With Quote
Bookmarks