A compound having Formula, or a stereoisomer, a tautomer, an N -oxide, a solvate or a pharmaceutically acceptable salt thereof, wherein m is 0, 1 or 2; n is 0, 1, 2, 3 or 4; A is CR 3; X is CR 1; Q is CH or N; M is -NR 7 - or -O-; L 1 is a bond, -NH-, -CH 2 -, -O- or -S-; each R 1 is independently H, D, F, Cl, Br, I, -CN, -NO 2, -OH, -NH 2, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 1-6 haloalkyl, C 1-6 alkoxy, C 1-6 haloalkoxy, C 1-6 alkylthio, -C(=O)NR 6 R 6a, -C(=O)R 6b, -C(=O)OR 6c, R 6 R 6a N-S(=O) 2 -, R 6b S(=O) 2 -, C 3-8 cycloalkyl, 3- to 12-membered heterocyclyl, C 6-10 aryl or 5- to 12-membered heteroaryl; R 2 is C 1-6 haloalkyl; R 3 is H, D, F, Cl, Br, I, -CN, -NO 2, -OH, -NH 2, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, carboxy-substituted C 1-6 alkyl, C 1-6 haloalkyl, C 1-6 haloalkoxy, -C(=O)NR 6 R 6a, -C(=O)R 6b, C 3-8 cycloalkyl or C 6-10 aryl; each R 4 is independently H, D, F, Cl, Br, I, -CN, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 1-6 haloalkyl, C 1-6 alkoxy or C 1-6 haloalkoxy; or two R 4, together with the adjacent ring carbon atoms to which they are attached, form a substituted or unsubstituted 5- to 7-membered carbocyclic ring or benzene ring; each R 6, R 6a, R 6b and R 6c is independently H, D, -OH, C 1-6 alkyl, C 1-6 haloalkyl, C 1-6 alkoxy, C 3-8 cycloalkyl, 3- to 12-membered heterocyclyl, C 6-10 aryl or 5- to 12-membered heteroaryl; or R 6 and R 6a, together with the nitrogen atom to which they are attached, form a substituted or unsubstituted 3- to 8-membered ring; and each R 7 is independently H, D, F, Cl, Br, I, -CN, -C(=O)NR 6 R 6a, -C(=O)R 6b, -C(=O)OR 6c, C 1-6 alkyl, C 1-6 haloalkyl, C 1-6 alkoxy, C 1-6 haloalkoxy, C 3-8 cycloalkyl, 3- to 12-membered heterocyclyl or (5- to 12-membered heteroaryl)-(C 1-6 alkylene)-. m is 0, 1 or 2; n is 0, 1, 2, 3 or 4; A is CR 3; X is CR 1; Q is CH or N; M is -NR 7 - or -O-; L 1 is a bond, -NH-, -CH 2 -, -O- or -S-; each R 1 is independently H, D, F, Cl, Br, I, -CN, -NO 2, -OH, -NH 2, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 1-6 haloalkyl, C 1-6 alkoxy, C 1-6 haloalkoxy, C 1-6 alkylthio, -C(=O)NR 6 R 6a, -C(=O)R 6b, -C(=O)OR 6c, R 6 R 6a N-S(=O) 2 -, R 6b S(=O) 2 -, C 3-8 cycloalkyl, 3- to 12-membered heterocyclyl, C 6-10 aryl or 5- to 12-membered heteroaryl; R 2 is C 1-6 haloalkyl; R 3 is H, D, F, Cl, Br, I, -CN, -NO 2, -OH, -NH 2, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, carboxy-substituted C 1-6 alkyl, C 1-6 haloalkyl, C 1-6 haloalkoxy, -C(=O)NR 6 R 6a, -C(=O)R 6b, C 3-8 cycloalkyl or C 6-10 aryl; each R 4 is independently H, D, F, Cl, Br, I, -CN, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 1-6 haloalkyl, C 1-6 alkoxy or C 1-6 haloalkoxy; or two R 4, together with the adjacent ring carbon atoms to which they are attached, form a substituted or unsubstituted 5- to 7-membered carbocyclic ring or benzene ring; each R 6, R 6a, R 6b and R 6c is independently H, D, -OH, C 1-6 alkyl, C 1-6 haloalkyl, C 1-6 alkoxy, C 3-8 cycloalkyl, 3- to 12-membered heterocyclyl, C 6-10 aryl or 5- to 12-membered heteroaryl; or R 6 and R 6a, together with the nitrogen atom to which they are attached, form a substituted or unsubstituted 3- to 8-membered ring; and each R 7 is independently H, D, F, Cl, Br, I, -CN, -C(=O)NR 6 R 6a, -C(=O)R 6b, -C(=O)OR 6c, C 1-6 alkyl, C 1-6 haloalkyl, C 1-6 alkoxy, C 1-6 haloalkoxy, C 3-8 cycloalkyl, 3- to 12-membered heterocyclyl or (5- to 12-membered heteroaryl)-(C 1-6 alkylene)-.