A model of an irreversible quantum Carnot heat engine with heat resistance,internal irreversibility and heat leakage and many non-interacting harmonic oscillators is established in this paper. Based on the quantum master equation and semi-group approach,equations of some important performance parameters,such as power output,efficiency,exergy loss rate and ecological function for the irreversible quantum Carnot heat engine are derived. The optimal ecological performance of the heat engine in the classical limit is analyzed with numerical examples. Effects of internal irreversibility and heat leakage on the ecological performance are discussed. A performance comparison of the quantum heat engine under maximum ecological function and maximum power conditions is also performed.