<?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[Rid QtWidget signals inside QObject]]></title><description><![CDATA[<p dir="auto">Hello guys,</p>
<p dir="auto">I have a tab based software, for each tab I wrote a class to separate the code and control each module. I used findChild method to get access to the widgets inside of the related tab. My problem is trying to delete the instance of a specific tab and disconnect all signals of the widgets inside of a QObject on the destruct method instead of selecting a widget one by one and disconnecting their signals.</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.qt.io/topic/145874/rid-qtwidget-signals-inside-qobject</link><generator>RSS for Node</generator><lastBuildDate>Sat, 24 Oct 2026 05:02:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145874.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jun 2023 13:06:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rid QtWidget signals inside QObject on Mon, 19 Jun 2023 13:13:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/omicron91">@<bdi>Omicron91</bdi></a> said in <a href="/post/761915">Rid QtWidget signals inside QObject</a>:</p>
<blockquote>
<p dir="auto">I have a tab based software, for each tab I wrote a class to separate the code and control each module. I used findChild method to get access to the widgets inside of the related tab.</p>
</blockquote>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/49986e85-c5d4-4f19-ab53-18ef49ee9fad.png" alt="SchockedMeme.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">why bother with encapsulation at all when you do this ?</p>
<blockquote>
<p dir="auto">My problem is trying to delete the instance of a specific tab and disconnect all signals of the widgets inside of a QObject on the destruct method instead of selecting a widget one by one and disconnecting their signals.</p>
</blockquote>
<p dir="auto">when done properly, connects will "disconnect" as soon as one of the object instances gets destroyed, there should be no need for manual disconnect calls.</p>
]]></description><link>https://forum.qt.io/post/761917</link><guid isPermaLink="true">https://forum.qt.io/post/761917</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Mon, 19 Jun 2023 13:13:18 GMT</pubDate></item></channel></rss>