Solution:
Let H be the orthocenter of △DEF. We first claim that O,I,H are collinear. We present two proofs.
Proof 1. Invert about ω. Circle (ABC) inverts to a circle with center on OI, but A,B,C invert to the midpoints of EF,FD,DE, respectively, so the nine-point center of △DEF is on OI. As this center is the midpoint of IH, we get that H,I,O are collinear.
Proof 2. Let QA,QB,QC be the second intersections of the D-, E-, and F-altitudes, respectively, in △DEF with ω. We claim △QAQBQC is homothetic with △ABC. Indeed, as QB is the reflection of H over DF and QC is the reflection of H over DE, DQB=DQC, so the perpendicular bisector of QBQC is line ID. As ID⊥BC, QBQC∥BC, whence the homothety follows. This homothety takes the incircle to the circumcircle, so it is centered on line OI. However, it also takes the incenter H of QAQBQC to the incenter I of ABC, so it is centered on line IH. So, O,I,H are collinear.
As P is the midpoint of QH, it suffices to show that P is on the circle with diameter QH, or that ∠QTH=90∘. As AT⊥TH=IO, it suffices to show that Q is on line AT. We also present two proofs of this.
Proof 1. Let D′ be the antipode of D, and let AD′ intersect BC at X. As X is the A-extouch point, the midpoint M of DX is also the midpoint of BC. We have
MXOM=2DXID=DXDD′
and ∠OMX=∠D′DX=90∘, so D′,O,X are collinear, so D′ is on line AO. As QD′∥EF, AQ and AD′ are isogonal in ∠BAC, so AQ and AO are isogonal, which means Q is on the A-altitude, finishing the proof.
Proof 2. Let Γ denote the circumcircle of △ABC, and let M be the midpoint of arc BC on Γ not containing A.
Lemma. The intersection T′ of MD and the A-altitude to BC is on the line through I parallel to BC.
Proof. Let D′=MA∩BC. As ∠D′BM=∠CBM=∠CAM=∠MAB, △D′BM∼△BAM, and
MI2=MB2=MD′⋅MA
Since AT′∥ID, we have
MDMT′=MIMA=MD′MI
so IT′∥DD′, finishing the proof.
By the above lemma, T is on MD. Consider a homothety centered at T that takes D to M. It takes ω to a circle centered on line IT that is tangent to Γ at M; since O is on line IT this circle must be Γ itself. So, T is the exsimilicenter of Γ and ω. By Proof 2 above, T is the center of the homothety which sends QAQBQC to ABC, so T,Q=QA, and A are collinear, finishing the proof.