'Return the (width, height) of a screen pixel in view coordinates.'

def viewPixelSize(self):

    o = self.mapToView(Point(0, 0))
    (px, py) = [Point((self.mapToView(v) - o)) for v in self.pixelVectors()]
    return (px.length(), py.length())
