Welcome to HCM.
Sorry to hear about your daughter.
6 months ago is unlikely to be the cause of the lack of weight gain.
She needs detailed physical examination of her lungs, heart bowels and thyroid
and tests to assess these organs if needed.
Kindly consult a senior pediatrician
and do the needful.