## Solution.
Let α,β, and γ denote the measures of the angles of triangle ABC at vertices A,B, and C, respectively.
Since angles B E C and B F C are right angles, points E and F lie on the circle with diameter BC, and quadrilateral BCEF is cyclic. From this, it follows that E F A=180 - B F E= B C E=.
Similarly, since angles A E H and A F H are right angles, quadrilateral AEHF is cyclic, and P is the center of its circumcircle. Therefore, from the relationship between the inscribed and central angles over the chord AE, we get A P E=2 A F E=2. From the isosceles triangle APE, we conclude that P E A= 1 2 (180 - A P E )=90 -, and from triangle AQE we have
E Q A=180 - Q A B- Q E A=180 - Q A B- P E A=180 - - (90 - )=90 + -.
!
On the other hand, since angles B F H and B D H are right angles, it follows that quadrilateral BDHF is also cyclic. From the relationship between the inscribed angles over the chords DH and BF, we have
R F H= A F H= D B H= C B E=90 - , R H F= B H F= B D F=180 - C D F= F A C= B A C=
where in the second extended equality, we used the fact that quadrilateral CDFA is also cyclic. From triangle RFH, we get
F R H=180 -( R H F+ R F H)=180 - - (90 - )=90 + - .
As a consequence in quadrilateral REQF, we have
F R E+ E Q F= F R H+180 - E Q A=90 + - +180 - (90 + - )=180
so it follows that this quadrilateral is also cyclic. From the equality of the inscribed angles over the chord RF, we have F Q R= F E R, and from the fact that quadrilateral HEAF is cyclic (and the relationship of the inscribed angles over the chord FH), it follows that F E R= F E H= F A H= B A D=90 -.
Finally,
F Q R= F A H=90 - ,
from which it follows that lines QR and AH are parallel. Since line AH is perpendicular to BC, due to the previously mentioned parallelism, it follows that QR and BC are also perpendicular, thus proving the statement.