His loan agreement was set to expire, but the two sides have worked out a short term extension.
The striker has scored 13 goals in all competitions this season.
Hugill is hoping to do enough to impress manager David Moyes and get into the Hammers first team squad for next season.
He could even play against West Ham in the coming days, as the two clubs are playing a behind closed doors friendly to prepare for their respective leagues resuming.
Hugill is the only recognised striker at QPR and his staying is a huge boost for them.