Pauses/stop QObjects inside QThread event loop
Unsolved
General and Desktop
-
-
Hi,
What kind of event do you have in mind ?
-
How are you sending these events ? What do they trigger in your object ?
-
Again, can you explain why you are using events directly ?
What are you doing in these objects ? -
QObject has no event loop, the event loop is in QCoreApplication and siblings.
You can not just stop the one from you main application. As for QThread you can interrupt the thread but I'm really not sure that's the best way to handle your situation.
From the looks of it, you seem to have to create a queue of the events received and store these there while in pause mode and then empty that queue on restart if that makes sense.