A Study of quasi-Gorenstein rings II: Deformation of quasi-Gorenstein property