White can also win with 1. Qf1 Rh2 2. Qg1+
a) 2. ... Kf3 3. a7 Rh8 4. a8=Q Rxa8 5. Qh1+ skewering the king and rook.
b) 2. ... Kh3 3. a7 and black cannot prevent white from queening.
c) 2. ... Kf4 3. Qxh2+
Other second moves from black allow white to just take the rook as in the solution even 2. ... Rd2 3. Qe1+ forces 3. ... Rf2 and the rook can be taken.
how?