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 ?
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 ?
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
Is there absolutely no answer from anyone?
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
It should be quite easy to judge:
Use the power of provided Qt sources!Qt 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 }To copy to clipboard, switch view to plain text mode
J-P Nurmi
Bookmarks