We tune the emission wavelength of an InAsP quantum dot in an InP nanowire over 200 meV by depositing a SiO(2) envelope using plasma-enhanced chemical vapor deposition without deterioration of the optical quality. This SiO(2) envelope generates a controlled static strain field. Both red and blue shift can be easily achieved by controlling the deposition conditions of the SiO(2). Using atomistic empirical tight-binding calculations, we investigate the effect of strain on a quantum dot band structure for different compositions, shape, and crystal orientations. From the calculations, we estimate the applied strain in our experiment. This enables engineering of the band gap in nanowires with unprecedented possibilities to extend the application range of nanowire devices.