<?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[error: no matching member function for call to &#x27;connect&#x27;]]></title><description><![CDATA[<pre><code>connect( dialogTestStubObj, SIGNAL(executeButtonIsClicked()), this, SLOT(onExecuteButtonIsClicked()) );

In the 'this' class have declared slot
public slots:
    void onExecuteButtonIsClicked();

In the 
class dialog_testing_stub:public QObject
{
    Q_OBJECT
public:
    dialog_testing_stub();
Q_SIGNALS:
    void executeButtonIsClicked();

</code></pre>
<p dir="auto">Where am I going wrong?</p>
]]></description><link>https://forum.qt.io/topic/97804/error-no-matching-member-function-for-call-to-connect</link><generator>RSS for Node</generator><lastBuildDate>Mon, 26 Oct 2026 00:11:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/97804.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Dec 2018 13:51:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error: no matching member function for call to &#x27;connect&#x27; on Wed, 19 Dec 2018 14:00:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gully">@<bdi>gully</bdi></a><br />
Ah it was not a pointer.<br />
I assume you use exec() in same place as else<br />
dialogTestStubObj might run out of scope.</p>
<p dir="auto">Also as note.<br />
the new connect syntax is better as it can give error at compile time if something is wrong.<br />
<a href="https://wiki.qt.io/New_Signal_Slot_Syntax" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.qt.io/New_Signal_Slot_Syntax</a></p>
]]></description><link>https://forum.qt.io/post/500345</link><guid isPermaLink="true">https://forum.qt.io/post/500345</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Wed, 19 Dec 2018 14:00:45 GMT</pubDate></item><item><title><![CDATA[Reply to error: no matching member function for call to &#x27;connect&#x27; on Wed, 19 Dec 2018 13:58:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gully">@<bdi>gully</bdi></a> said in <a href="/post/500341">error: no matching member function for call to 'connect'</a>:</p>
<blockquote>
<p dir="auto">connect( dialogTestStubObj, SIGNAL(executeButtonIsClicked()), this, SLOT(onExecuteButtonIsClicked()) );</p>
</blockquote>
<p dir="auto">connect( &amp;dialogTestStubObj, SIGNAL(executeButtonIsClicked()), this, SLOT(onExecuteButtonIsClicked()) );</p>
<pre><code>&amp;dialogTestStubObj
</code></pre>
<p dir="auto">Solved it</p>
]]></description><link>https://forum.qt.io/post/500344</link><guid isPermaLink="true">https://forum.qt.io/post/500344</guid><dc:creator><![CDATA[gully]]></dc:creator><pubDate>Wed, 19 Dec 2018 13:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to error: no matching member function for call to &#x27;connect&#x27; on Wed, 19 Dec 2018 13:55:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
You also have Q_OBJECT in the "this" class?<br />
Anyway, it can be slow sometimes to detect changes. ( like adding Q_OBJECT )</p>
<p dir="auto">Please try to delete the build folder<br />
and then rebuild all.</p>
<p dir="auto">The code seems fine.<br />
I assume the dialog_testing_stub lives in a .h file.</p>
]]></description><link>https://forum.qt.io/post/500343</link><guid isPermaLink="true">https://forum.qt.io/post/500343</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Wed, 19 Dec 2018 13:55:50 GMT</pubDate></item></channel></rss>