<?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[isSignalConnected correct usage]]></title><description><![CDATA[<p dir="auto">to check if a signal is connected I use this code:</p>
<pre><code>    if (!this-&gt;isSignalConnected(QMetaMethod::fromSignal(&amp;QtVariantPropertyManager::propertyChanged))) {

        connect( sdkItemPropManager, SIGNAL( propertyChanged( QtProperty * ) ), this, SLOT( onUpdatePropertyValues() ) );
        connect( sdkEmuManager, SIGNAL( propertyChanged( QtProperty * ) ), this, SLOT( onUpdatePropertyValues() ) );

    }
</code></pre>
<p dir="auto">But I always got an Assert:</p>
<pre><code>ASSERT failure in QObject::isSignalConnected: "the parameter must be a signal member of the object", file \Users\qt\work\qt\qtbase\src\corelib\kernel\qobject.cpp, line 2539
</code></pre>
<p dir="auto">Is there an explanation that you can understand?</p>
]]></description><link>https://forum.qt.io/topic/126435/issignalconnected-correct-usage</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:43:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126435.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 May 2021 12:31:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to isSignalConnected correct usage on Fri, 07 May 2021 15:21:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pixbyte">@<bdi>pixbyte</bdi></a><br />
Hence I presume the message</p>
<blockquote>
<p dir="auto">"signal must be a signal member of this object, otherwise the behaviour is undefined."</p>
</blockquote>
<p dir="auto">in answer to your</p>
<blockquote>
<p dir="auto">But also Iam interrested why the initial code do not work.</p>
</blockquote>
]]></description><link>https://forum.qt.io/post/658539</link><guid isPermaLink="true">https://forum.qt.io/post/658539</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 07 May 2021 15:21:50 GMT</pubDate></item><item><title><![CDATA[Reply to isSignalConnected correct usage on Fri, 07 May 2021 14:54:26 GMT]]></title><description><![CDATA[<p dir="auto">No this is the target where the signal is connected on. I think here it is a mdi_child.</p>
]]></description><link>https://forum.qt.io/post/658534</link><guid isPermaLink="true">https://forum.qt.io/post/658534</guid><dc:creator><![CDATA[pixbyte]]></dc:creator><pubDate>Fri, 07 May 2021 14:54:26 GMT</pubDate></item><item><title><![CDATA[Reply to isSignalConnected correct usage on Fri, 07 May 2021 14:37:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pixbyte">@<bdi>pixbyte</bdi></a><br />
I <em>assume</em> as the error message states.</p>
<pre><code>this-&gt;isSignalConnected(QMetaMethod::fromSignal(&amp;QtVariantPropertyManager::propertyChanged)
</code></pre>
<p dir="auto">Is <code>this</code> of type <code>QtVariantPropertyManager</code>?</p>
]]></description><link>https://forum.qt.io/post/658526</link><guid isPermaLink="true">https://forum.qt.io/post/658526</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 07 May 2021 14:37:09 GMT</pubDate></item><item><title><![CDATA[Reply to isSignalConnected correct usage on Fri, 07 May 2021 14:27:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> said in <a href="/post/658496">isSignalConnected correct usage</a>:</p>
<blockquote>
<p dir="auto">Qt::UniqueConnection</p>
</blockquote>
<p dir="auto">ok, this is really a good and helpfull tip. Thank you. But also Iam interrested why the initial code do not work.</p>
]]></description><link>https://forum.qt.io/post/658521</link><guid isPermaLink="true">https://forum.qt.io/post/658521</guid><dc:creator><![CDATA[pixbyte]]></dc:creator><pubDate>Fri, 07 May 2021 14:27:42 GMT</pubDate></item><item><title><![CDATA[Reply to isSignalConnected correct usage on Fri, 07 May 2021 12:36:34 GMT]]></title><description><![CDATA[<p dir="auto">Why not simply use Qt::UniqueConnection?</p>
<p dir="auto">According to the <a href="https://doc.qt.io/qt-5/qobject.html#isSignalConnected" target="_blank" rel="noopener noreferrer nofollow ugc">documentation</a>: "signal must be a signal member of this object, otherwise the behaviour is undefined."</p>
]]></description><link>https://forum.qt.io/post/658496</link><guid isPermaLink="true">https://forum.qt.io/post/658496</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 07 May 2021 12:36:34 GMT</pubDate></item></channel></rss>