This may sound like dumb simple question but I rather felt its better to clarify.
I am 100% sure that I am not using "parent - children" amongst QGraphicsItems in my app. So is it better to use scenePos() or pos() ? Any performance differences ?
Printable View
This may sound like dumb simple question but I rather felt its better to clarify.
I am 100% sure that I am not using "parent - children" amongst QGraphicsItems in my app. So is it better to use scenePos() or pos() ? Any performance differences ?
Is there absolutely no answer from anyone? :confused:
It should be quite easy to judge:
Use the power of provided Qt sources! ;)Code:
{ 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 }