England goalkeeper Robert Green is to leave West Ham and sign a two-year deal with QPR, the Premier League club announced on Thursday.
Green, who has 12 caps and is part of the England squad competing at Euro 2012, will arrive at Loftus Road on July 1 when his contract with West Ham expires.
"Rob is someone with vast experience at international and Premier League level and his pedigree speaks for itself," QPR boss Mark Hughes said.
The 32-year-old, who spent six years at West Ham, has made 480 club appearances during a 13-year professional career that started at Norwich.
"It was important we brought another quality 'keeper into the group," Hughes said.
"Rob's got all the characteristics of a top 'keeper and he'll be a huge addition for us who will stimulate the goalkeeping group, which can only be good for the squad as a whole."
Green was offered fresh terms by West Ham, who won promotion to the Premier League last season, but wanted to move on.
"I'm delighted to be here," Green said.
"I'm excited about the challenge ahead and hugely encouraged by the direction in which the owners and Mark Hughes are looking to take the club.
"It's an exciting period for everybody connected to QPR and I can't wait to get started."