<?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[Problem with new connect syntax]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Here is the new syntax :</p>
<p dir="auto">@ QObject::connect(m_actionAbout, &amp;QAction::triggered,<br />
qApp, &amp;QApplication::aboutQt);@</p>
<p dir="auto">But dsnt work :/</p>
<p dir="auto">@FenPrincipale.cpp:69: erreur : C2664: 'QMetaObject::Connection QObject::connect(const QObject *,const char *,const QObject *,const char <em>,Qt::ConnectionType)' : cannot convert parameter 2 from 'void (__thiscall QAction::</em> )(bool)' to 'const char *'<br />
There is no context in which this conversion is possible@</p>
<p dir="auto">Can you help ? thanks</p>
]]></description><link>https://forum.qt.io/topic/22511/problem-with-new-connect-syntax</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 05:56:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/22511.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Dec 2012 10:21:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with new connect syntax on Tue, 25 Dec 2012 12:45:06 GMT]]></title><description><![CDATA[<p dir="auto">Beware that such a lambda construct isn't a real connection between QObjects, right? So things like sender() or connectNotify() won't work. (And even a disconnect?)</p>
]]></description><link>https://forum.qt.io/post/160627</link><guid isPermaLink="true">https://forum.qt.io/post/160627</guid><dc:creator><![CDATA[DerManu]]></dc:creator><pubDate>Tue, 25 Dec 2012 12:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with new connect syntax on Tue, 25 Dec 2012 12:17:29 GMT]]></title><description><![CDATA[<p dir="auto"><em>QAction::triggered</em> has an additional <em>bool</em> parameter, <em>QApplication::aboutQt</em> not.</p>
<p dir="auto">&lt;code&gt;QObject::connect(m_actionAbout, &amp;QAction::triggered, <a href="bool" class="plugin-markdown-hidden-link small link-danger"></a>{ qApp-&gt;aboutQt(); });&lt;/code&gt;</p>
]]></description><link>https://forum.qt.io/post/160624</link><guid isPermaLink="true">https://forum.qt.io/post/160624</guid><dc:creator><![CDATA[lgeyer]]></dc:creator><pubDate>Tue, 25 Dec 2012 12:17:29 GMT</pubDate></item></channel></rss>