1. Do not edit the moc_XXX.h files
2. You only need to declare the signals(in the .h file) . You do not (and should not) provide an implementation for it (in the .cpp file). Qt generates the code for signals by itself.

If you remove the function definition in the .cpp file and keep the declaration in the .h file, things should be fine.