define event pump after main qt stuff has been initialized