Record, serialize and replay Qt4.8 events.