正如标题所述,我试图将QFileSystemWatcher::directoryChanged(const QString&)信号连接到lambda,但是当我用g++ (7.2.1)编译它时,我得到了以下错误In function ‘int main()’:
foo.cpp:10:55: error: no matching function for call to ‘QObject::connect(QFileSystemWatcher(&)(), void (QFileSystemWatcher::*)(const QS
我有以下问题:我创建了一个QFileSystemWatcher,它在Linux上运行得很好,但在windows7上却不行。你能在代码中发现任何可能使它无法工作的地方吗?mConfigChangeWatcher = new QFileSystemWatcher();
mConfigChangeWatcher->addPath(config_file_name