Your class should be instantiate somewhere. There you should add
connect (classA, SIGNAL(signalA()), classB, SLOT(slotB()))
same as in the same class.