Adding cleanup for qt objects