BBC
By Shamoon Hafez BBC Sport
51 shots in the match; 32 for QPR, 19 for Leicester
QPR move up to 18th, Leicester drop to the bottom
Leicester end 504-minute goal drought
Foxes remain winless since SeptemberCharlie Austin was the match winner for QPR who moved off the bottom of the table by beating struggling Leicester.
The visitors ended their five-game goal drought early on as Esteban Cambiasso swept in from the edge of the area.
Out of media player. Press enter to return or tab to continue.
QPR 3-2 Leicester: Harry Redknapp pleased with 'big win' for Hoops
QPR forced an equaliser as Wes Morgan put through his own net, before midfielder Leroy Fer put them in front, smashing home from close range.
Leicester's Jamie Vardy hit the bar, and Jeffrey Schlupp stroked in, but Austin's header won it for QPR.
Both sides won promotion from the Championship in 2013-14 but have struggled this season and Harry Redknapp's team have now conceded the first goal in 10 of their 13 league games so far.
But, despite going behind, they showed persistence and fight to claim the points, staying in the bottom three on goal difference.
Leicester's slump
The Foxes won eight points from their opening five league games but have managed just two points from the subsequent eight
Leicester, who drop to 20th, have now gone eight games without victory since their superb 5-3 win over Manchester United in September.
This was a thrilling, end-to-end game that featured 51 attempts on goal - 32 for QPR and 19 from Leicester - and Nigel Pearson's men may well feel they had enough good opportunities to win the match.
It started well for the Foxes as they took the lead after four minutes - their first goal in 504 minutes of football - as Argentine Cambiasso, netted from Schlupp's cutback.
Niko Kranjcar had a free-kick deflected just over for QPR and Riyad Mahrez shot wide from close range for the visitors.
Home sweet home
All 11 of QPR's points this season have come at Loftus Road (Won 3, Draw 2)
The home side made their pressure pay as centre-back Morgan bundled into his own net from Steven Caulker's ball into the box.
QPR 3-2 Leicester: Nigel Pearson annoyed at conceding poor goals
Minutes later, striker Vardy, who caused problems to the QPR defence all game, shot straight at Robert Green from inside the area.
And the home side deservedly took the lead on the verge of half-time. Fer reacted quickest to a loose ball to finish after Austin's point-blank header was kept out by Kasper Schmeichel.
Vardy's flicked header hit the crossbar from Mahrez's cross in the second half and Leicester levelled via Schlupp's accurate finish into the bottom corner.
Austin's fifth goal in the last five games put Rangers ahead again, and Matthew James's rasping drive went narrowly over late on as the home side held on for the win.
BBC Match of the Day's Danny Murphy: "There was no parking the bus today. It was two committed teams both giving their all, terrible defending, some very good attacking but I've never seen Gary Lineker lose his temper so often.
"They were all avoidable goals. All QPR's goals were quite simple, it was people switching off and losing concentration, a lot to work on for Nigel Pearson. Charlie Austin has scored seven in 12 for QPR and if that continues I think they'll be OK."
QPR manager Harry Redknapp: "It was a great game. They scored the early goal and we came back at them strong. They were a threat with Jamie Vardy but we played as well as we have all season.
"We showed a lot of character today and played really well in the first half. It was all hands to the pump late on in the second half but a great win for us.
"We are scoring goals which is good but we defended well today when we had to. That win has put us right back into the pack but we have Swansea and Burnley coming up, every game is vital."
Leicester manager Nigel Pearson: "There were lots of positive things and we created enough chances to win. That remains very frustrating for us. We conceded two poor goals before half-time and we looked dangerous throughout the game.
"It was about making sure we kept threatening and we were unlucky not to get anything from the game. Today it didn't happen for us.
"The players have done so many good things but it hasn't turned out the way we would have liked."
Esteban Cambiasso
01 Green Booked
14 Isla
15 Onuoha
04 Caulker
13 Yun Suk-young Booked (Traore - 51' )
19 Kranjcar (Hoilett - 91' )
08 Barton
20 Henry
10 Fer
24 Vargas (Mutch - 76' )
09 Austin Booked
Substitutes 03 Traore
05 Ferdinand
07 Phillips
11 Wright-Phillips
12 McCarthy
17 Mutch
23 Hoilett
Leicester City 01 Schmeichel
02 de Laet
27 Wasilewski
05 Morgan
03 Konchesky
26 Mahrez (Albrighton - 60' Booked )
08 James
19 Cambiasso (King - 89' )
15 Schlupp
09 Vardy
23 Ulloa (Nugent - 60' Booked )
Substitutes
04 Drinkwater
10 King
11 Albrighton
12 Hamer
18 Moore
24 Knockaert
35 Nugent
Ref: Roger East
Att: 18,054
www.bbc.com/sport/0/football/30156605