The five-year-old daughter of murdered policewoman Sharon Beshenivsky has presented a posy to the Queen.
Lydia was joined by her father and the family's police liaison officer
Lydia Beshenivsky was accompanied by her father and brother, both called Paul, when she met Her Majesty in Bradford's Centenary Square.
Pc Beshenivsky was shot dead on Lydia's fourth birthday, during a robbery at a Bradford travel agents in 2005.
The Queen and the Duke of Edinburgh were spending the day touring Bradford and Huddersfield, in West Yorkshire.
Lydia and her eight-year-old brother were also accompanied by police family liaison officer Pc Cate Jackson.
Their father said afterwards: "It's been fabulous, a great honour to meet the Queen.
"She just asked how I was. I'm just a bit overwhelmed by it. It's been a superb day. The kids, I think, have done very well. I'm very proud."
The Queen arrived at the Interchange station in Bradford on the Royal Train before visiting the new £3m Bradford Hindu Temple.
She met fund-raisers, community leaders and the designers of the temple. She removed her shoes when she visited the prayer room and a garland of flowers was placed around her neck.
Once fully completed, the temple - in Leeds Road - will be one of the largest outside London. It will open to worshippers later this summer.
Later the Queen and Duke unveiled a plaque to mark the opening of the Bradford Police headquarters at Trafalgar Square.
Pc Beshenivsky was killed after responding to an armed robbery
At Centenary Square, the Queen was briefed on the city's multi-million pound regeneration programme before receiving a posy from Pc Beshenivsky's daughter.
Later, the Queen and the Duke of Edinburgh travelled to Huddersfield.
About 30 minutes before the Royal party arrived, a man was manhandled out from behind one of the barriers and led away in handcuffs. A plastic bag with an axe protruding from it was confiscated by police officers, who later confirmed a man in his 20s had been arrested for possession of an offensive weapon.
When they arrived, the Royal party went on a walkabout in St George's Square and then listened to music performed by the Huddersfield Choral Society led by the orchestra from Opera North.
About 5,000 members of the public packed the square, including 500 local schoolchildren.
The party later went on stage to meet musicians before leaving West Yorkshire.
Four men have been jailed for their part in the robbery which led to Pc Beshenivsky's death. Two were found guilty of murder and sentenced to life with a minimum term of 35 years.