class A: public QObject{ Q_OBJECTpublic: A() { /* populating m_objects */ }public slots: void interact(int id) { Dialog dlg = new Dialog(...); connect(dlg, SIGNAL(finished(int)), this, SLOT(dialogFinished(int))); dlg.show(); } void dialogFinished(int result) { // How to find out to what object this result is related? }private: QList<B> m_objects; };