It should be quite easy to judge:
{
return d_ptr->pos; // returns a member variable of the private implementation class (the pos is maintained while moving the item)
}
{
return mapToScene(0, 0); // uses QMatrix to map (0,0) to scene coords
}
QPointF QGraphicsItem::pos() const
{
return d_ptr->pos; // returns a member variable of the private implementation class (the pos is maintained while moving the item)
}
QPointF QGraphicsItem::scenePos() const
{
return mapToScene(0, 0); // uses QMatrix to map (0,0) to scene coords
}
To copy to clipboard, switch view to plain text mode
Use the power of provided Qt sources!
Bookmarks