It looks like moc doesn't generate code for your QObject because you declare it in the .cpp file. The easiest ...
stackoverflow.com