Is the wrapper C++ code generated or hand-written?

it's automatically generated against the Qt version you use when you run the setup. the generator is also used to power qtmoc and qtminimal.

I couldn't find the source code of that generator. It is not here, right? -> https://github.com/therecipe/qt/