First of all, QObject::connect() takes pointers to the sender and the receiver. So if you allocate the "filevisitor" on the stack, you need to pass "&filevisitor". Secondly, you must not put parameter names inside the SIGNAL() and SLOT() macros. So probably it should be something like this:
connect(&filevisitor,
SIGNAL(foundFile
(QString)),
this,
SLOT(FileName
(QString)));
connect(&filevisitor, SIGNAL(foundFile(QString)), this, SLOT(FileName(QString)));
To copy to clipboard, switch view to plain text mode
Bookmarks