Qtree4 spoj using hld

What is the approach to solve qtree4 using heavy light decomposition?
I did it using centroid decomposition but in anudeep’s blog he writes that it can be done with HLD and i dont know how.