I has used QPainter::setWindow to map my logic cooridnate system to meet with the view cooridnate, then at the slot of mousePress event, how can I map back the device cooridnate to logic cooridnate. I know in windows programing, the function LPtoDP do this. Is there an equivalent in Qt or any other method?

Thanks