I have an application that is streaming text to a QTextEdit via a separate thread in the background. Whenever the window is resized while the thread is streaming text it causes a crash. I want to disable the streaming while the window is being resized, is there a proper way to do this?