<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt;color:#000000"><div><span style="font-size:13.3333px"><br></span></div><div><span style="font-size:13.3333px"><span style="font-size:13.3333px">I noticed that the repeated call to <span style="font-family:"lucida console",sans-serif;background-color:rgb(255,255,153)">app.processEvents()</span> is the culprit, when called too often in a short timespan. Removing that line from the code in the slot, solved the issue. But it takes down the responsiveness of my GUI. So I thought, why not query first if there are any events to get processed anyway? Unfortunately, the function <span style="color:#000000;font-family:'lucida console',sans-serif;font-size:13.3333px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:#ffff99;text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">hasPendingEvents()</span></span></span><span style="font-size:13.3333px"> is not safe to use when there are any non-main-threads running in the entire application. That's not okay.</span></div><div><br></div></div></div></blockquote><div><br></div><div>I would've thought that you would not need to call processEvents if you are using background threads and sending update signals simply to refresh the UI. The GUI is blocked by actual GUI updates?</div><div>In your example you have added actual work to the main thread which seem will obviously block it... what is blocking the GUI your actual app?<br></div><div><br></div><div><br></div><div><br></div></div></div></div>