Unsolved condition to quit the thread
I have a thread that will display a graph in a new window how I can make the condition to quit the thread is when the user clicks on the closing red cross
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.