I have data in mm/inches and I need to set pen width in mm/inch units and not in terms of pixels. The functions in QPen(setWidth and setWidthF works on pixels). Is there any conversion from mm/inch value to pixel(e.g., when i say 1mm, the line drawn should be 1 pixel wide) or is there any way to set pen width in mm/inch units.

Thanks,
Mangesh