<?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[Connection failed on qchildevent after converting code from qt3 to qt4]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">The two connects in the qchildevent function in qt4 fail, and I have no idea why.</p>
<p dir="auto">At the top left you see the values of the variables in qt4 and at the bottom right in qt3.</p>
<p dir="auto">The only thing I notice is unknown ‘clas’.</p>
<p dir="auto">Can anyone help me?</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/72369d15-58c7-4fb4-80c0-95a99ecf597a.png" alt="Screenshot_20230520_175827.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/145251/connection-failed-on-qchildevent-after-converting-code-from-qt3-to-qt4</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 19:29:39 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145251.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 May 2023 16:34:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connection failed on qchildevent after converting code from qt3 to qt4 on Sun, 21 May 2023 08:37:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/giusdbg">@<bdi>giusdbg</bdi></a> I think I found and solved (if there will be no side effects), there are different event handling in qt4.</p>
<p dir="auto">This way the added event is called while the Sensors object is still being built, and the connect fails.</p>
<p dir="auto">Sensor::Sensor(SensorsList *parent,const char *name): QObject(parent)</p>
<p dir="auto">In this way the added event takes place after the construction of the Sensors</p>
<p dir="auto">Sensor::Sensor(SensorsList *parent,const char *name): QObject()<br />
........<br />
setParent(parent);</p>
]]></description><link>https://forum.qt.io/post/758867</link><guid isPermaLink="true">https://forum.qt.io/post/758867</guid><dc:creator><![CDATA[giusdbg]]></dc:creator><pubDate>Sun, 21 May 2023 08:37:06 GMT</pubDate></item><item><title><![CDATA[Reply to Connection failed on qchildevent after converting code from qt3 to qt4 on Sat, 20 May 2023 20:51:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Thank you.<br />
The one in sourceforge is my project.</p>
<p dir="auto">The qchildevent situation is even stranger<br />
-- In qt3 the events for inserted() are generated only after the exec() .<br />
-- In qt4 the events for added() are all generated first, during the construction phase of the objects.</p>
]]></description><link>https://forum.qt.io/post/758853</link><guid isPermaLink="true">https://forum.qt.io/post/758853</guid><dc:creator><![CDATA[giusdbg]]></dc:creator><pubDate>Sat, 20 May 2023 20:51:31 GMT</pubDate></item><item><title><![CDATA[Reply to Connection failed on qchildevent after converting code from qt3 to qt4 on Sat, 20 May 2023 19:05:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Someone seems to have already done the job. You might want to check this <a href="https://sourceforge.net/projects/ksensors-qt5/" target="_blank" rel="noopener noreferrer nofollow ugc">project</a>.</p>
]]></description><link>https://forum.qt.io/post/758848</link><guid isPermaLink="true">https://forum.qt.io/post/758848</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 20 May 2023 19:05:14 GMT</pubDate></item></channel></rss>