<?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[I need to connect a ComponentA Signal to a method of another ComponentB]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i need to create a <em>ComponentC</em> dynamically when a button of <em>ComponentA</em> is clicked and the <em>ComponentC</em> must be created in ComponentB that is not accessible through id from <em>ComponentA</em>.</p>
<p dir="auto">So how is this realisable ?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.qt.io/topic/26614/i-need-to-connect-a-componenta-signal-to-a-method-of-another-componentb</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 01:59:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/26614.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Apr 2013 14:08:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I need to connect a ComponentA Signal to a method of another ComponentB on Wed, 22 May 2013 15:04:38 GMT]]></title><description><![CDATA[<p dir="auto">Thank you but i have a new problem with connections.</p>
<p dir="auto">Why i can't sometime access <em>someObject</em> with his unique ID ?</p>
]]></description><link>https://forum.qt.io/post/180128</link><guid isPermaLink="true">https://forum.qt.io/post/180128</guid><dc:creator><![CDATA[SlimIT]]></dc:creator><pubDate>Wed, 22 May 2013 15:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to I need to connect a ComponentA Signal to a method of another ComponentB on Fri, 26 Apr 2013 00:32:51 GMT]]></title><description><![CDATA[<p dir="auto">You can also use the dynamic signal connection syntax.</p>
<p dir="auto">@<br />
Component.onCompleted: {<br />
someObjectId.someSignal.connect(otherObjectId.methodName)<br />
}<br />
@</p>
<p dir="auto">A connections element is less error-prone, and more declarative - but does involve the instantiation of a QObject, and has some performance implications.  In most cases, I'd suggest the use of the Connections element, but there are times when using an imperative signal connection is the better choice.</p>
<p dir="auto">Cheers,<br />
Chris.</p>
]]></description><link>https://forum.qt.io/post/177230</link><guid isPermaLink="true">https://forum.qt.io/post/177230</guid><dc:creator><![CDATA[chrisadams]]></dc:creator><pubDate>Fri, 26 Apr 2013 00:32:51 GMT</pubDate></item><item><title><![CDATA[Reply to I need to connect a ComponentA Signal to a method of another ComponentB on Thu, 25 Apr 2013 16:00:01 GMT]]></title><description><![CDATA[<p dir="auto">I think that i can't do that with the Qt Core because i'm using QtQuick QML.</p>
<p dir="auto">I was able to do that with the "Connections":<a href="https://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-connections.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-connections.html</a> Component.</p>
]]></description><link>https://forum.qt.io/post/177218</link><guid isPermaLink="true">https://forum.qt.io/post/177218</guid><dc:creator><![CDATA[SlimIT]]></dc:creator><pubDate>Thu, 25 Apr 2013 16:00:01 GMT</pubDate></item><item><title><![CDATA[Reply to I need to connect a ComponentA Signal to a method of another ComponentB on Thu, 25 Apr 2013 14:38:58 GMT]]></title><description><![CDATA[<p dir="auto">You should be able to achieve this using "signals and slots":<a href="http://qt-project.org/doc/qt-5.0/qtcore/signalsandslots.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtcore/signalsandslots.html</a>. You can connect a signal emitted by your ComponentA to a method of your ComponentB  using the "QObject::connect":<a href="http://qt-project.org/doc/qt-5.0/qtcore/qobject.html#connect" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtcore/qobject.html#connect</a>. Check the "documentation":<a href="http://qt-project.org/doc/qt-5.0/qtcore/signalsandslots.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtcore/signalsandslots.html</a> for details.</p>
]]></description><link>https://forum.qt.io/post/177212</link><guid isPermaLink="true">https://forum.qt.io/post/177212</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Thu, 25 Apr 2013 14:38:58 GMT</pubDate></item></channel></rss>