Quote Originally Posted by cbeall1
Although I gave Codepoet's idea a quick try, since this would certainly be more elegant. But the problem is that I do have an #ifndef statement inside my cpp code so that I can emit a Qt signal. If I set my classes up so that the "Qt-enabled" server class inherits from the "Qt-ignorant" class, it complains about the emit signal in the cpp code not being defined in the base class. And there is no easy way around this. So I'll go with the first approach.
For the next time: You can instead call a protected virtual member function which does nothing in the base class and in the Qt class you can override this method to call emit