The invention relates to a quinazoline compound, in particular to a compound with a general formula (I) and a preparation method thereof, wherein R1 and Y are defined as the specifications, and a medicine combination of the compound (I) and the purpose thereof are included in a preparation method of the compound. The invention further relates to a compound with a general formula (II), which is the intermediate for preparing the compound with the general formula (I), wherein Ar, R2, R3, m, n and T are defined as the specifications.