Despite admitting that he was surprised to see QPR defender Richard Dunne sent off in the first half for a foul on Leon Best, which led to Chris Maguire scoring from the penalty spot, Gray believes that Wednesday fully deserved to beat the promotion hopefuls.
"It was definitely a penalty but I was quite surprised the referee brought the red card out so that maybe the bit of luck we had," Gray told reporters.
"To beat a side with quality of QPR was pleasing, I am delighted with performance and I am going to enjoy it.
"It's a very, very happy dressing room and delighted to beat a quality team like that."
Gray's side have climbed to 14th in the Championship following the win.