Pyrazolo-quinazoline derivatives of formula (Ia) or (Ib) as defined in thespecification, and pharmaceutically acceptable salts thereof, process fortheir preparation and pharmaceutical compositions comprising them aredisclosed; the compounds of the invention may be useful, in therapy, in thetreatment of diseases associated with a disregulated protein kinase activity,like cancer.