<?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[You cannot connect anything to a signal in the same class.]]></title><description><![CDATA[[[topic:post-is-deleted]]]]></description><link>https://forum.qt.io/topic/163302/you-cannot-connect-anything-to-a-signal-in-the-same-class.</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 18:22:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163302.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Sep 2025 10:07:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to You cannot connect anything to a signal in the same class. on Mon, 22 Sep 2025 10:23:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mtty">@<bdi>mtty</bdi></a><br />
Just to say: there is no problem connecting a signal to a slot (functor or method) within the same class.  Your code for that is correct, as far as your snippet shows.  I cannot say anything about QML as I know nothing about that.  If signal <code>this-&gt;portChanged()</code> is raised your <code>qDebug()</code> or <code>this-&gt;textSlot()</code> should be called.  (I assume your <code>_timer</code> is a class member or "global".)</p>
<p dir="auto">Your <code>this</code> must be of class <code>BackboneInf</code>, how does that relate to your <code>class Ctr</code>?  I am lost on that in your code....</p>
]]></description><link>https://forum.qt.io/post/831874</link><guid isPermaLink="true">https://forum.qt.io/post/831874</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 22 Sep 2025 10:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to You cannot connect anything to a signal in the same class. on Mon, 22 Sep 2025 12:38:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> thank you for quick reply. It is stupid mistake. Another constructor is used; my mistake.</p>
]]></description><link>https://forum.qt.io/post/831883</link><guid isPermaLink="true">https://forum.qt.io/post/831883</guid><dc:creator><![CDATA[mtty]]></dc:creator><pubDate>Mon, 22 Sep 2025 12:38:51 GMT</pubDate></item><item><title><![CDATA[Reply to You cannot connect anything to a signal in the same class. on Mon, 22 Sep 2025 10:23:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mtty">@<bdi>mtty</bdi></a><br />
Just to say: there is no problem connecting a signal to a slot (functor or method) within the same class.  Your code for that is correct, as far as your snippet shows.  I cannot say anything about QML as I know nothing about that.  If signal <code>this-&gt;portChanged()</code> is raised your <code>qDebug()</code> or <code>this-&gt;textSlot()</code> should be called.  (I assume your <code>_timer</code> is a class member or "global".)</p>
<p dir="auto">Your <code>this</code> must be of class <code>BackboneInf</code>, how does that relate to your <code>class Ctr</code>?  I am lost on that in your code....</p>
]]></description><link>https://forum.qt.io/post/831874</link><guid isPermaLink="true">https://forum.qt.io/post/831874</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 22 Sep 2025 10:23:48 GMT</pubDate></item></channel></rss>