Using signal-slot mechanism will be a better option here, instead of Event