How do this interaction work? As far as I read it Close Quarters Targeting (CQT) only states that it makes you able to preform ranged attacks while engaged. Charge states if the charging unit crashes with an ennemy they preform a melee attack action. As the ranged attack is not transformed to a melee attack CQT don't work on charges as i read it. Or is a melee ranged attack also cosidered a melee attack action?
Close Quarters Targeting and Charge
You read it correctly. It allows you to make a Ranged attack while in melee. It does not convert your ranged attack into a melee attack.
When charging, you make your melee attack. If you are engaged next turn, you make your Ranged attack on I5 rather than I4 as a melee attack.