C++ (Qt)class A{signals: void updated(A*); //!!!!!!}; class B{ QVector<A*> coll; protected slots: void OnAUpdated(A* a) //!!!!!! { emit reemited(this, coll.indexOf(a)); //!!!!!! } signals: void reemited(B*, int indexA);}
C++ (Qt)class A{signals: voide updated(); //!!!!!!}; class B{ QVector<A*> coll; protected slots: void OnAUpdated() //!!!!!! { emit reemited(this, coll.indexOf( sender() )); //!!!!!! } signals: void reemited(B*, int indexA);}