#include class Signal_test : public QObject { Q_OBJECT public: Signal_test() { connect(this, SIGNAL(test_signal()), this, SLOT(test_slot())); } void run() { for(int i = 0; i < 10000000; ++i) emit test_signal(); } signals: void test_signal(); private slots: void test_slot() {} }; int main() { Signal_test st; st.run(); return 0; } #include "qt_signal.moc"