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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…