Code: Alles auswählen
bool QObject::connect ( const QObject * sender, const char * signal, const QObject * receiver, const char * method, Qt::ConnectionType type = Qt::AutoConnection )Also wird ein Programm in dieser Form die Ergebnisse vom Macro SLOT anzeigen:
Code: Alles auswählen
void debugSlot(const char *slotName) {
qDebug( slotName );
}
debugSlot( SLOT( MeinSlot() ));
debugSlot( SLOT( test() ));
Code: Alles auswählen
1MeinSlot()
1test()
Gruß Sig