A compound of formula, wherein R 1 is wherein R 4 is C 1-6 alkyl, C 1-6 alkoxy, haloC 1-6 alkyl, halogen, nitro or cyano; R 4a is H or deuterium; R 4b is H, deuterium or C 1-6 alkyl; R 4c is C 1-6 alkyl or C 3-7 cycloalkyl; R 5 is H or halogen; R 2 is ((C 1-6 alkyl)zamino)C 1-6 alkoxy; (C 1-6 alkoxypyrrolidinyl)amino; (cyanopyrrolidinyl)amino; 1,4-diazepanyl substituted by hydroxy; 1,6-diazaspiro[3.3]heptanyl; 2,5-diazabicyclo[2.2.1]heptanyl; 2,6-diazaspiro[3.3]heptanyl substituted by C 1-6 alkyl; 3,4,4a,5,7,7a-hexahydro-2H-pyrrolo[3,4-b][1,4]oxazinyl; 3-oxa-7,9-diazabicyclo[3.3.1]nonanyl; 5-oxa-2,8-diazaspiro[3.5]nonanyl; aminoC 1-6 alkyl; aminooxazepanyl; azetidinyl substituted once or twice by substituents independently selected from amino and C 1-6 alkyl; azetidinylamino; halopyrrolidinylamino; morpholinyl unsubstituted or substituted by C 1-6 alkyl; morpholinylC 1-6 alkyl; piperazinyl unsubstituted or substituted by C 1-6 alkyl, hydroxyC 1-6 alkyl, pyrrolidinylcarbonyl, ((C 1-6 alkyl)zamino)C 1-6 alkylcarbonyl or azetidinylcarbonyl; piperidinyl unsubstituted or substituted once or twice by substituents independently selected from amino, halogen and C 1-6 alkoxy; or pyrrolidinyl substituted once, twice or three times by substituents independently selected from amino, halogen, hydroxy, C 1-6 alkyl and C 1-6 alkoxy; R 3 is C 1-6 alkyl; A is azetidinyl, hydroxyazetidinyl, piperazinyl, pyrrolidinyl, piperidinyl or cyanopiperidinyl; Q is phenyl unsubstituted or substituted by halogen; pyrazinyl; pyridazinyl; pyridinyl unsubstituted or substituted by C 1-6 alkyl; pyrimidinyl unsubstituted or substituted once or twice by substituents independently selected from halogen, C 1-6 alkyl, C 1-6 alkoxy and cyano; or quinazolinyl; or a pharmaceutically acceptable salt thereof. R 1 is wherein R 4 is C 1-6 alkyl, C 1-6 alkoxy, haloC 1-6 alkyl, halogen, nitro or cyano; R 4a is H or deuterium; R 4b is H, deuterium or C 1-6 alkyl; R 4c is C 1-6 alkyl or C 3-7 cycloalkyl; R 5 is H or halogen; R 2 is ((C 1-6 alkyl)zamino)C 1-6 alkoxy; (C 1-6 alkoxypyrrolidinyl)amino; (cyanopyrrolidinyl)amino; 1,4-diazepanyl substituted by hydroxy; 1,6-diazaspiro[3.3]heptanyl; 2,5-diazabicyclo[2.2.1]heptanyl; 2,6-diazaspiro[3.3]heptanyl substituted by C 1-6 alkyl; 3,4,4a,5,7,7a-hexahydro-2H-pyrrolo[3,4-b][1,4]oxazinyl; 3-oxa-7,9-diazabicyclo[3.3.1]nonanyl; 5-oxa-2,8-diazaspiro[3.5]nonanyl; aminoC 1-6 alkyl; aminooxazepanyl; azetidinyl substituted once or twice by substituents independently selected from amino and C 1-6 alkyl; azetidinylamino; halopyrrolidinylamino; morpholinyl unsubstituted or substituted by C 1-6 alkyl; morpholinylC 1-6 alkyl; piperazinyl unsubstituted or substituted by C 1-6 alkyl, hydroxyC 1-6 alkyl, pyrrolidinylcarbonyl, ((C 1-6 alkyl)zamino)C 1-6 alkylcarbonyl or azetidinylcarbonyl; piperidinyl unsubstituted or substituted once or twice by substituents independently selected from amino, halogen and C 1-6 alkoxy; or pyrrolidinyl substituted once, twice or three times by substituents independently selected from amino, halogen, hydroxy, C 1-6 alkyl and C 1-6 alkoxy; (C 1-6 alkoxypyrrolidinyl)amino; (cyanopyrrolidinyl)amino; 1,4-diazepanyl substituted by hydroxy; 1,6-diazaspiro[3.3]heptanyl; 2,5-diazabicyclo[2.2.1]heptanyl; 2,6-diazaspiro[3.3]heptanyl substituted by C 1-6 alkyl; 3,4,4a,5,7,7a-hexahydro-2H-pyrrolo[3,4-b][1,4]oxazinyl; 3-oxa-7,9-diazabicyclo[3.3.1]nonanyl; 5-oxa-2,8-diazaspiro[3.5]nonanyl; aminoC 1-6 alkyl; aminooxazepanyl; azetidinyl substituted once or twice by substituents independently selected from amino and C 1-6 alkyl; azetidinylamino; halopyrrolidinylamino; morpholinyl unsubstituted or substituted by C 1-6 alkyl; morpholinylC 1-6 alkyl; piperazinyl unsubstituted or substituted by C 1-6 alkyl, hydroxyC 1-6 alkyl, pyrrolidinylcarbonyl, ((C 1-6 alkyl)zamino)C 1-6 alkylcarbonyl or azetidinylcarbonyl; piperidinyl unsubstituted or substituted once or twice by substituents independently selected from amino, halogen and C 1-6 alkoxy; or pyrrolidinyl substituted once, twice or three times by substituents independently selected from amino, halogen, hydroxy, C 1-6 alkyl and C 1-6 alkoxy; R 3 is C 1-6 alkyl; A is azetidinyl, hydroxyazetidinyl, piperazinyl, pyrrolidinyl, piperidinyl or cyanopiperidinyl; Q is phenyl unsubstituted or substituted by halogen; pyrazinyl; pyridazinyl; pyridinyl unsubstituted or substituted by C 1-6 alkyl; pyrimidinyl unsubstituted or substituted once or twice by substituents independently selected from halogen, C 1-6 alkyl, C 1-6 alkoxy and cyano; or quinazolinyl; pyrazinyl; pyridazinyl; pyridinyl unsubstituted or substituted by C 1-6 alkyl; pyrimidinyl unsubstituted or substituted once or twice by substituents independently selected from halogen, C 1-6 alkyl, C 1-6 alkoxy and cyano; or quinazolinyl; or a pharmaceutically acceptable salt thereof.