Relationship between ECG waves & mechanical events in a Cardiac cycle:

P-wave - end of diastasis & starting of atrial systole.
QRS-wave - end of atrial systole & isovolumetric contraction.
T-wave -end of ventricular ejection phase & isovolumetric relaxation.