A compound of formula I wherein Q is-N(R 1)(R 2) or -O-R 3; R 1 and R 2 independently of each other is H, C 1 -C 6 -alkyl, C 1 -C 6 -alkylcarbonyl, C 2 -C 6 -alkenyl, C 3 -C 6 -cycloalkyl, C 3 -C 6 -cycloalkylcarbonyl, C 1 -C 6 -alkoxy-C 1 -C 6 -alkyl, di(C 1 -C 6 -alkyl)amino-C 1 -C 6 -alkyl, C 1 -C 6 -alkyl-carboxy-C 1 -C 6 -a!kyl, amino-C 1 -C 6 -alkyl, C 1 -C 6 -hydroxyalkyl, C 1 -C 6 -alkylamino-C 1 -C 6 -alkyl or R 1 and R 2 form together with the nitrogen atom to which they are attached a ring containing 2 to 5 carbon atoms and optionally one additional nitrogen, sulphur or oxygen atom, said ring optionally being substituted with 1 to 4 substituents selected from the group consisting of C 1 -C 4 -alkyl and C 1 -C 4 -alkoxy; R 3 is C 1 -C 6 -alkyl, C 1 -C 6 -alkylcarbonyl, C 2 -C 6 -alkenyl, C 3 -C 6 -cycloalkyl, C 3 -C 6 -cycloalkylcarbonyl, C 1 -C 6 -alkoxy-C 1 -C 6 -alkyl, di(C 1 -C 6 -alkyl)amino-C 1 -C 6 -alkyl, C 1 -C 6 -carboxy-C 1 -C 6 -alkyl, amino-C 1 -C 6 -alkyl, C 1 -C 6 -hydroxyalkyl, C 1 -C 6 -alkylamino-C 1 -C 6 -alkyl; R 4 is OH, NH 2, C 1 -C 6 -alkyloxy, C 1 -C 6 -alkylamino, di(C 1 -C 6 -alkyl)amino, amino(C 1 -C 6 -alkyl)amino, C 1 -C 6 -alkylthio, unsubstituted or one to five fold substituted arytoxy, unsubstituted or one to five fold substituted arylamino, the substituents independently from each other being selected from the group consisting of halogen, nitro, cyano, C 1 -C 6 -alkyl, halo-C 1 -C 6 -alkyl, C 1 -C 6 -alkoxy, halo-C 1 -C 6 -alkoxy, C 2 -C 6 -alkenyl, halo-C 2 -C 6 -alkenyl, C 2 -C 6 -alkinyl, C 3 -C 6 -cycloalkyl, C 2 -C 6 -alkenyloxy, halo-C 2 -C 6 -alkenyloxy, C 1 -C 6 -alkylthio, halo-C 1 -C 6 -alkylthio, C 1 -C 6 -alkylsulfonyloxy, halo-C 1 -C 6 -alkylsulfonyloxy, C 1 -C 6 -alkylsulfinyl, halo-C 1 -C 6 -alkylsulfinyl, C 1 -C 6 -alkylsulfonyl, halo-C 1 -C 6 -alkylsulfonyl, C 2 -C 6 -alkenylthio, halo-C 2 -C 6 -alkenylthio, C 2 -C 6 -alkenylsulfinyl, halo-C 2 -C 6 -alkenylsulfinyl, C 2 -C 6 -alkenylsulfonyl, halo-C 2 -C 6 -alkenylsulfonyl, C 1 -C 6 -alkylamino, di-C 1 -C 6 -alkylamino, C 1 -C 6 -alkylsulfonylamino, halo-C 1 -C 6 -alkylsulfonylamino, C 1 -C 6 -alkylcarbonyl, halo-C 1 -C 6 -alkylcarbonyl and C 1 -C 6 -alkoxycarbonyl; R 5 is H, halogen, NO 2, CN, NH 2, SH, OH, CO 2 H, CHO, C 1 -C 6 -alkyl, C 1 -C 6 -alkoxy, C 1 -C 6 -alkylthio, C 1 -C 6 -alkylsulfinyl, C 1 -C 6 -alkylsulfonyl, C 1 -C 6 -alkylcarboxy, C 1 -C 6 -alkylcarbonyl, aminocarbonyl, C 1 -C 6 -alkylcarbonylamino, C 1 -C 6 -alkylcarbonyloxy or C 1 -C 6 -alkylsulfonylamino; R 6 is H, halogen, NO 2, CN or C 1 -C 6 -alkyl; and the ring system is selected from the group consisting of and and a physiologically acceptable ester or a pharmaceutically acceptable salt thereof. Q is-N(R 1)(R 2) or -O-R 3; R 1 and R 2 independently of each other is H, C 1 -C 6 -alkyl, C 1 -C 6 -alkylcarbonyl, C 2 -C 6 -alkenyl, C 3 -C 6 -cycloalkyl, C 3 -C 6 -cycloalkylcarbonyl, C 1 -C 6 -alkoxy-C 1 -C 6 -alkyl, di(C 1 -C 6 -alkyl)amino-C 1 -C 6 -alkyl, C 1 -C 6 -alkyl-carboxy-C 1 -C 6 -a!kyl, amino-C 1 -C 6 -alkyl, C 1 -C 6 -hydroxyalkyl, C 1 -C 6 -alkylamino-C 1 -C 6 -alkyl or R 1 and R 2 form together with the nitrogen atom to which they are attached a ring containing 2 to 5 carbon atoms and optionally one additional nitrogen, sulphur or oxygen atom, said ring optionally being substituted with 1 to 4 substituents selected from the group consisting of C 1 -C 4 -alkyl and C 1 -C 4 -alkoxy; R 3 is C 1 -C 6 -alkyl, C 1 -C 6 -alkylcarbonyl, C 2 -C 6 -alkenyl, C 3 -C 6 -cycloalkyl, C 3 -C 6 -cycloalkylcarbonyl, C 1 -C 6 -alkoxy-C 1 -C 6 -alkyl, di(C 1 -C 6 -alkyl)amino-C 1 -C 6 -alkyl, C 1 -C 6 -carboxy-C 1 -C 6 -alkyl, amino-C 1 -C 6 -alkyl, C 1 -C 6 -hydroxyalkyl, C 1 -C 6 -alkylamino-C 1 -C 6 -alkyl; R 4 is OH, NH 2, C 1 -C 6 -alkyloxy, C 1 -C 6 -alkylamino, di(C 1 -C 6 -alkyl)amino, amino(C 1 -C 6 -alkyl)amino, C 1 -C 6 -alkylthio, unsubstituted or one to five fold substituted arytoxy, unsubstituted or one to five fold substituted arylamino, the substituents independently from each other being selected from the group consisting of halogen, nitro, cyano, C 1 -C 6 -alkyl, halo-C 1 -C 6 -alkyl, C 1 -C 6 -alkoxy, halo-C 1 -C 6 -alkoxy, C 2 -C 6 -alkenyl, halo-C 2 -C 6 -alkenyl, C 2 -C 6 -alkinyl, C 3 -C 6 -cycloalkyl, C 2 -C 6 -alkenyloxy, halo-C 2 -C 6 -alkenyloxy, C 1 -C 6 -alkylthio, halo-C 1 -C 6 -alkylthio, C 1 -C 6 -alkylsulfonyloxy, halo-C 1 -C 6 -alkylsulfonyloxy, C 1 -C 6 -alkylsulfinyl, halo-C 1 -C 6 -alkylsulfinyl, C 1 -C 6 -alkylsulfonyl, halo-C 1 -C 6 -alkylsulfonyl, C 2 -C 6 -alkenylthio, halo-C 2 -C 6 -alkenylthio, C 2 -C 6 -alkenylsulfinyl, halo-C 2 -C 6 -alkenylsulfinyl, C 2 -C 6 -alkenylsulfonyl, halo-C 2 -C 6 -alkenylsulfonyl, C 1 -C 6 -alkylamino, di-C 1 -C 6 -alkylamino, C 1 -C 6 -alkylsulfonylamino, halo-C 1 -C 6 -alkylsulfonylamino, C 1 -C 6 -alkylcarbonyl, halo-C 1 -C 6 -alkylcarbonyl and C 1 -C 6 -alkoxycarbonyl; R 5 is H, halogen, NO 2, CN, NH 2, SH, OH, CO 2 H, CHO, C 1 -C 6 -alkyl, C 1 -C 6 -alkoxy, C 1 -C 6 -alkylthio, C 1 -C 6 -alkylsulfinyl, C 1 -C 6 -alkylsulfonyl, C 1 -C 6 -alkylcarboxy, C 1 -C 6 -alkylcarbonyl, aminocarbonyl, C 1 -C 6 -alkylcarbonylamino, C 1 -C 6 -alkylcarbonyloxy or C 1 -C 6 -alkylsulfonylamino; R 6 is H, halogen, NO 2, CN or C 1 -C 6 -alkyl; and