Substitute Chris Martin scored a late winner as struggling QPR stunned runaway Championship leaders Burnley in an absorbing game to delay the hosts' title celebrations.
Already-promoted Burnley battered the visitors in the first half, dominating possession and having 17 attempts on goal, only for Sam Field to volley Rangers ahead just before the hour.
The Clarets, who still need one more win from their final three games to be sure of winning the Championship, continued to create chances and were finally rewarded when Manuel Benson cut in from the right and curled home a superb equaliser.
But with home pressure building Martin glanced home the winner from a corner, and Rangers held on for just their second victory in 21 league games to move four points clear of the relegation zone with two games remaining.