How to add .cc files to a module?

Right, that’s what I was asking for. The file where I could edit and add a class for “QGCApplication.h”. Thanks a lot!

All right, I’ll look into that as well. I’m new to QML, so a bit slow in understanding.
But my question was regarding the other way round. Is it possible to expose anything from QML to C++? For example, if I could expose a button from one of those QML pages to “QGCApplication.h”, I could modify the any function in “QGCApplication.h itself” by allowing it to proceed only if the button is clicked.