Is it possible to see definition of Q_SIGNALS, Q_SLOT, SLOT(), SIGNAL() macros? (Qt)
c++, qt, signals-slots
Solution
Form `qobjectdefs.h`, for a non-debug compilation:
#define Q_SLOTS
#define Q_SIGNALS protected
#define SLOT(a) "1"#a
#define SIGNAL(a) "2"#a
The `Q_SLOTS` and `Q_SIGNALS` declarations are only treated specially by the `moc` run, in the final compilation they reduce to simple method declarations. `SIGNAL()` and `SLOT()` create names from the provided signatures.
Problem
Is it possible to see definition of Q_SIGNALS, Q_SLOT, SLOT(), SIGNAL() macros in Qt framework? P.S. Google gave me nothing in this question.