The signal passes a pointer to the given object and you can cast it to the class you need.