'What type of Unit measure do I obtain from a QGraphicView Class in its scene?

I have located two points in my QGraphicsView which is map to my scene(QGraphicsScene).The two points are based on the mousecliked(mousePressEvent) made by the user, these points serve as the two endpoints of a line. I obtained the distance of the line using the formula to find the distance of two points. I am not sure what unit of measurement does I obtain, is it in pixel?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source