<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PyQt5 - Dialog pops up immediately on opening for the first time, but far slower on subsequent uses.]]></title><description><![CDATA[[[topic:post-is-deleted]]]]></description><link>https://forum.qt.io/topic/139453/pyqt5-dialog-pops-up-immediately-on-opening-for-the-first-time-but-far-slower-on-subsequent-uses</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 07:34:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139453.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Sep 2022 13:43:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PyQt5 - Dialog pops up immediately on opening for the first time, but far slower on subsequent uses. on Tue, 20 Sep 2022 14:33:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kasula">@<bdi>KASULA</bdi></a><br />
Not really: get rid of all this "thread handling" stuff, and saving data etc., and see how the dialog behaves.</p>
<p dir="auto">Since you (seem to) intend to create a brand new dialog each time, try setting the <code>Qt.WA_DeleteOnClose</code> flag/attribute on the dialog, does that make any difference?</p>
<pre><code>def return_cancel(self,new_form):
    new_form().reject()
</code></pre>
<p dir="auto">Do you press <strong>Cancel</strong> in your timings?  Because this code is wrong.</p>
]]></description><link>https://forum.qt.io/post/729499</link><guid isPermaLink="true">https://forum.qt.io/post/729499</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 20 Sep 2022 14:33:41 GMT</pubDate></item></channel></rss>