Well, I think I found the issue. Passing QString by reference may be something that wasn't intended, but technically it works (slot will be invoked). I think, the problem is you emit signals before establishing connection.
PollController *pollController = new PollController();
// you emit signals here !
pollController->setup(1,1000);
Analyzer *analyzer = pollController->getAnalyzer();
pollController->moveToThread(&pollThread);
Logger *logger = new Logger();
// you establish connection here! doesn't even get called
logger->setup(host,port,analyzer);
PollController *pollController = new PollController();
// you emit signals here !
pollController->setup(1,1000);
Analyzer *analyzer = pollController->getAnalyzer();
QThread pollThread;
pollController->moveToThread(&pollThread);
Logger *logger = new Logger();
// you establish connection here! doesn't even get called
logger->setup(host,port,analyzer);
To copy to clipboard, switch view to plain text mode
However, it seems to not have any relation to my post. G00d luck.
Bookmarks