Why you need to know position of the item in the viewport?
Anyway, you can use mapFromScene/mapToScene if you need.