If a △QPR is right angled at P, then what is the longest side of the triangle?
QR
The side opposite to the greatest angle in a triangle is the longest.
As here the largest angle is the right angle P, QR will be the longest side in △QPR, right angled at P.