Hello All,
Qt Code:
  1. //.h
  2. class A
  3. {
  4. Q_OBJECT
  5. public:
  6. A(){}
  7. public slots:
  8. #ifdef SOMEMACRO
  9. void slotA();
  10. #endif
  11. };
  12. //.cpp
  13. #ifdef SOMEMACRO
  14. void A::slotA()
  15. {
  16. //..
  17. }
  18. #endif
To copy to clipboard, switch view to plain text mode 
If SOMEMACRO is "NOT DEFINED" will the above code compile?
In my case it doesn't compile. Why?
Is the moc_A.cpp file created before preprocessors being parsed by the compiler?

Thanks