QFileSystemWatcher signal connection give weird error.
Solved
General and Desktop
-
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...
connect(mProjectWatcher, &QFileSystemWatcher::fileChanged, [this](const QString &path) { monitoredFileChanged(path); });
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
What do I do with this o.O ?
-
@dariusz said in QFileSystemWatcher signal connection give weird error.:
What do I do with this o.O ?
Don't try to call the WinAPI function 'connect' I would guess...
--> QObject::connect(...)