The present invention relates to new compounds which are Pyrrole derivatives of formula (I) wherein A, B, P, QW, R and R are defined in the description. Invention compounds are useful in the prevention or treatment of central or peripheral nervous system disorders as well as other disorders modulated by mGluR5 receptors.