Use QEvent::isAccepted to control the event propagation