Qt: set wait cursor when quitting