Matt Smith's late goal gave QPR a 2-1 victory against Cardiff on the day the west London club marked the 50th anniversary of their 1967 League Cup triumph.
Sol Bamba headed the visitors into the lead from Craig Noone's corner a minute before half-time. But Rangers equalised after 62 minutes when a slick move culminated in Jamie Mackie slotting the ball through to substitute Yeni Ngbakoto, who blasted past goalkeeper Allan McGregor.
And January signing Smith headed in Ngbakoto's corner with seven minutes remaining - his third goal in four matches - to give the hosts all three points.
It meant a losing return to Loftus Road for former QPR boss Neil Warnock and a third win in four matches for Rangers, who wore a special-edition all-white kit in honour of the one worn by Alec Stock's Wembley winners.
Stock's Rangers team, then in the Third Division, famously came back from two down against top-flight West Brom to win 3-2 and sensationally clinch what remains QPR's only major trophy.
This was hardly a comeback to match that achievement, but it underlined Rangers' recent improvement under Ian Holloway. They had plenty of possession in the first half and almost went ahead when Conor Washington hit the post.
Striker Washington, who had scored four goals in his previous six appearances, collected Smith's flick-on and evaded former Rs defender Matt Connolly but saw his left-footed shot come back off the woodwork.
Cardiff barely threatened before keeper Alex Smithies produced a superb save after Joe Ralls' shot took a deflection off QPR skipper Nedum Onuoha.
City scored from the resulting corner. Noone served up the perfect delivery from the left and centre-back Bamba rose to head Warnock's side into the lead.
Cardiff made a strong start to the second half, appealing in vain for a penalty after Jake Bidwell appeared to tug Noone's shirt, and then almost doubling their lead when Kenneth Zohore's shot was cleared off the line by Joel Lynch.
With his team struggling, Holloway made an attacking change, replacing midfielder Sean Goss, who was making his full debut, with French winger Ngbakoto.
The switch paid off emphatically, with Rangers levelling five minutes later courtesy of Ngbakoto's third goal of the season.
He then almost went one better, forcing a save from McGregor with a fiercely-struck free-kick. It was only a temporary reprieve for Cardiff, who failed to deal with Ngbakoto's corner and were punished by the in-form Smith.
QPR boss Ian Holloway:
"[Ngbakoto] has been very patient. I've asked him to do some fitness work behind the scenes and he's lost all sorts of poundage.
"He had a terrible bereavement just after he joined us and I felt that affected him, but he's one of our family and he's an absolute joy to work with. He's made another statement there for me to pick him."
Cardiff boss Neil Warnock:
"I've been saying for months we're not going to do it. If we can't win here when we dominate like that we're not going to make the play-offs.
"We were 1-0 up and really should have scored two or three goals in the second half. To then give them a chance is very disappointing. But to get where we are has been fabulous. The lads have really done well for me."