Event handler nearly done now. Waiting on the port to Qt to finish it off.