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