QPR have signed England goalkeeper Robert Green on a two-year deal, the club have announced.
Green, who has 12 caps, 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.
Green is part of the England squad competing at Euro 2012 and joins QPR after spending six years at West Ham.
The 32-year-old has amassed over 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."