condition to quit the thread
Unsolved
General and Desktop
-
@najlou said in condition to quit the thread:
I have a thread that will display a graph in a new window
Be aware that you are not allowed to change UI in other threads than main (GUI) thread.
Back to your question: emit a signal if you want to stop the other thread. Connect this signal to a slot in that other thread and stop the thread in this slot.