Add ability to supply a filter function to QtCallbackProxy::connectEvent()

This provides a way to filter on attributes of the event or sender
before invoking the callback.
Assert if the type of argument to QtCallback::bind() does not match the expected type