<?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[Blocking a signal]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Is there any way to block a signal from emitting?<br />
For example, i have a signal defined in my program, which i am emitting in a function like</p>
<p dir="auto">my class:: func xyz(){<br />
emit abcsignal();<br />
}<br />
I am emitting signal based on few conditions, for some reason in one condition i don't want it to emit,<br />
any way to prevent abcsignal from emitting ?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.qt.io/topic/84944/blocking-a-signal</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 07:34:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/84944.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Nov 2017 11:10:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Blocking a signal on Tue, 14 Nov 2017 04:47:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> thank you for the reply... ya i have used if condition.</p>
]]></description><link>https://forum.qt.io/post/425861</link><guid isPermaLink="true">https://forum.qt.io/post/425861</guid><dc:creator><![CDATA[Naveen_D]]></dc:creator><pubDate>Tue, 14 Nov 2017 04:47:16 GMT</pubDate></item><item><title><![CDATA[Reply to Blocking a signal on Sat, 11 Nov 2017 11:51:29 GMT]]></title><description><![CDATA[<p dir="auto">Also you can use function <code>blockSignals(true)</code> to prevent signal from emiting.</p>
<p dir="auto">More information - <a href="http://doc.qt.io/qt-4.8/qobject.html#blockSignals" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-4.8/qobject.html#blockSignals</a></p>
]]></description><link>https://forum.qt.io/post/425444</link><guid isPermaLink="true">https://forum.qt.io/post/425444</guid><dc:creator><![CDATA[Cobra91151]]></dc:creator><pubDate>Sat, 11 Nov 2017 11:51:29 GMT</pubDate></item><item><title><![CDATA[Reply to Blocking a signal on Sat, 11 Nov 2017 11:37:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
Just use a normal if ?</p>
<p dir="auto">my class:: func xyz(){<br />
if ( condition )<br />
emit abcsignal();<br />
else<br />
qDebug() &lt;&lt; "signal not emitted";<br />
}</p>
]]></description><link>https://forum.qt.io/post/425443</link><guid isPermaLink="true">https://forum.qt.io/post/425443</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sat, 11 Nov 2017 11:37:14 GMT</pubDate></item></channel></rss>