C++ (Qt)void QMetaObject::activate(QObject *sender, int signalOffset, int local_signal_index, void **argv){ int signal_index = signalOffset + local_signal_index; if (!sender->d_func()->isSignalConnected(signal_index) && !qt_signal_spy_callback_set.signal_begin_callback && !qt_signal_spy_callback_set.signal_end_callback) { return; // nothing connected to these signals, and no spy } if (sender->d_func()->blockSig) return; if (sender->d_func()->declarativeData && QAbstractDeclarativeData::signalEmitted) QAbstractDeclarativeData::signalEmitted(sender->d_func()->declarativeData, sender, signal_index, argv); void *empty_argv[] = { 0 }; if (qt_signal_spy_callback_set.signal_begin_callback != 0) { qt_signal_spy_callback_set.signal_begin_callback(sender, signal_index, argv ? argv : empty_argv);