Samuel Di Carmine had given Q.P.R. a 54th minute lead but Steve Thompson levelled for Burnley 6 mins later.
The 90 mins ended 1 - 1 and the 30 mins of extra time looked to be ending the same way with a penalty shoot out looming when Jay Rodriguez shot and scored in the 120th minute.
Rangers FA Cup dream shot down with seconds remaining.