<?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[QFileSystemWatcher signal connection give weird error.]]></title><description><![CDATA[<p dir="auto">So I try to connect my watcher to function, the base class is on QObject so I'm using lambda but I get weird error...</p>
<pre><code>connect(mProjectWatcher, &amp;QFileSystemWatcher::fileChanged, [this](const QString &amp;path) { monitoredFileChanged(path); });
</code></pre>
<pre><code>error C2664: 'int connect(SOCKET,const sockaddr *,int)': cannot convert argument 1 from 'QFileSystemWatcher *' to 'SOCKET'
note: There is no context in which this conversion is possible
</code></pre>
<p dir="auto">What do I do with this o.O ?</p>
]]></description><link>https://forum.qt.io/topic/106011/qfilesystemwatcher-signal-connection-give-weird-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 18:58:14 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/106011.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Aug 2019 12:29:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QFileSystemWatcher signal connection give weird error. on Sun, 18 Aug 2019 12:32:41 GMT]]></title><description><![CDATA[<p dir="auto">Pricelesss.... Thanks!</p>
]]></description><link>https://forum.qt.io/post/546656</link><guid isPermaLink="true">https://forum.qt.io/post/546656</guid><dc:creator><![CDATA[Dariusz]]></dc:creator><pubDate>Sun, 18 Aug 2019 12:32:41 GMT</pubDate></item><item><title><![CDATA[Reply to QFileSystemWatcher signal connection give weird error. on Sun, 18 Aug 2019 12:32:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dariusz">@<bdi>dariusz</bdi></a> said in <a href="/post/546654">QFileSystemWatcher signal connection give weird error.</a>:</p>
<blockquote>
<p dir="auto">What do I do with this o.O ?</p>
</blockquote>
<p dir="auto">Don't try to call the WinAPI function 'connect' I would guess...</p>
<p dir="auto">--&gt; QObject::connect(...)</p>
]]></description><link>https://forum.qt.io/post/546655</link><guid isPermaLink="true">https://forum.qt.io/post/546655</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sun, 18 Aug 2019 12:32:02 GMT</pubDate></item></channel></rss>