Ramsey took over at Loftus Road after former boss Harry Redknapp quit the club at the beginning of February.
Although the club were just outside the relegation zone at the time, in 17th place, the size of Ramsey's task with a demanding fixture list was obvious.
Club owner Tony Fernandes has been impressed by the 53-year-old's conduct during a tricky spell for the club and has now rewarded him with a three-year deal.
"When Chris took over the role we were already in a very difficult position," said Fernandes.
"Yet despite our relegation, we, as a board, have been impressed with the professionalism and attention to detail he has demonstrated since becoming head coach."
The contract will bring at least some stability to the club ahead of an uncertain summer, with the club potentially facing a huge fine on their return to the Football League for breaking Financial Fair Play rules in the 2013-2014 season.
source:eurosport