I am developing a small QT library consisting of a widget and several helper classes which inherit QObject and use the Q_OBJECT macro. I want to hide the helper classes and put their definitions inside the CPP file. The problem is that QT's moc processes class definitions only in header file and thus I am getting a linker error. My questions are:
- Is there any way to let mom handle a definition of a class in the CPP file if that class uses Q_OBJECT?
- If not, what other ways would I have to hide the helper class?