Queens Park Rangers gifted promotion-chasing Championship side Hull City a last-minute winner in a dramatic finale of two late goals at Loftus Road.