Is there a general rule for the moment of invocation of onX methods in Qt in regard to

1. object's state change
2. side effects?