<?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[click issue between 2 different application]]></title><description><![CDATA[<p dir="auto">hey there!<br />
I'm experiencing something pretty weird.<br />
I have a script launching different qt application one after the termination of the previous, the script sleeps for 1 second among every one.<br />
It 's a really simple script running really simple processes.<br />
Almost every process shows a widget with 2 buttons at the bottom of the screen (yes and no), the application terminates right when the user clicks one of the 2 buttons returning the result of the choice. This result does not affect any further qt invoke, it is stored and used at the end.<br />
My problem is: if the user in during one choice double clicks on a button for some reason, the first click is processed correctly by the current qt application, the second click is "saved" by the environment and processed as soon as the next qt application shows its widget and runs.<br />
Second click event is in the same spot of the first click (in the previous qtapp) resulting in the click of the same button chosen before.</p>
<p dir="auto">How can I block this behaviour? it seems the event loop is not cleared.<br />
I'm thinking on some workaround as moving mouse cursor outside of the window before running the qtapp, or a timer which avoid early click event processing. But I'm searching for a more canonical solution.</p>
<p dir="auto">I'm using qt embedded version 4.8, on a linux machine running on a cortex a8 processor (freescale imx53).<br />
Thanks into advance for reading and suggestions.</p>
]]></description><link>https://forum.qt.io/topic/114263/click-issue-between-2-different-application</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 20:21:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114263.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Apr 2020 10:42:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to click issue between 2 different application on Thu, 07 May 2020 15:52:47 GMT]]></title><description><![CDATA[<p dir="auto">I used a workaround with a timer to pass by this issue...<br />
But I still have no idea how to solve it</p>
]]></description><link>https://forum.qt.io/post/593312</link><guid isPermaLink="true">https://forum.qt.io/post/593312</guid><dc:creator><![CDATA[schu87]]></dc:creator><pubDate>Thu, 07 May 2020 15:52:47 GMT</pubDate></item><item><title><![CDATA[Reply to click issue between 2 different application on Thu, 30 Apr 2020 15:25:02 GMT]]></title><description><![CDATA[<p dir="auto">update: not only a normal-double-click, but also a slow-double-click with the second click performed during sleep-time between processes, triggers the issue.</p>
<p dir="auto">For slow-double-click I mean 2 clicks made slower enough which normally would be interpreted as 2 different clicks.</p>
]]></description><link>https://forum.qt.io/post/591842</link><guid isPermaLink="true">https://forum.qt.io/post/591842</guid><dc:creator><![CDATA[schu87]]></dc:creator><pubDate>Thu, 30 Apr 2020 15:25:02 GMT</pubDate></item><item><title><![CDATA[Reply to click issue between 2 different application on Thu, 30 Apr 2020 14:16:46 GMT]]></title><description><![CDATA[<p dir="auto">nope, pressed instead of clicked didn't solve the issue...</p>
]]></description><link>https://forum.qt.io/post/591815</link><guid isPermaLink="true">https://forum.qt.io/post/591815</guid><dc:creator><![CDATA[schu87]]></dc:creator><pubDate>Thu, 30 Apr 2020 14:16:46 GMT</pubDate></item><item><title><![CDATA[Reply to click issue between 2 different application on Thu, 30 Apr 2020 14:02:01 GMT]]></title><description><![CDATA[<ul>
<li>bash scripting</li>
<li>launch by  ./qtapp -qws</li>
<li>sleeping 1 second in bash script using "sleep 1"</li>
</ul>
<p dir="auto">I'll try the pressed signal instead of clicked...</p>
]]></description><link>https://forum.qt.io/post/591811</link><guid isPermaLink="true">https://forum.qt.io/post/591811</guid><dc:creator><![CDATA[schu87]]></dc:creator><pubDate>Thu, 30 Apr 2020 14:02:01 GMT</pubDate></item><item><title><![CDATA[Reply to click issue between 2 different application on Thu, 30 Apr 2020 10:52:28 GMT]]></title><description><![CDATA[<p dir="auto">hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/schu87">@<bdi>schu87</bdi></a> said in <a href="/post/591773">click issue between 2 different application</a>:</p>
<blockquote>
<p dir="auto">I have a script launching different qt application one after the termination of the previous,</p>
</blockquote>
<ul>
<li>what kind of script in what language?</li>
<li>how are your qt application launched</li>
<li>how do you "sleep"</li>
</ul>
<blockquote>
<p dir="auto">But I'm searching for a more canonical solution.</p>
</blockquote>
<p dir="auto">react on pressed not on the clicked signal, I could imagine, this doing something for you!</p>
]]></description><link>https://forum.qt.io/post/591774</link><guid isPermaLink="true">https://forum.qt.io/post/591774</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Thu, 30 Apr 2020 10:52:28 GMT</pubDate></item></channel></rss>