Does it work if you call a function of "static_cast<MyCustomClass*>" which emits the signal?