yagabey
2nd April 2015, 16:10
Hi,
I create a QGraphicsItemGroup from existing graphicsItems on the scene.
Strange thing: When i debug the initial position of QGraphicsItemGroup , I always see (0,0)
qDebug()<<theItem->scenePos();
qDebug()<<theItem->pos();
Debug output:
QPointF(0,0)
QPointF(0,0)
When i move the group on the scene the position info is always shifted according to the initial position. For example ; if i create two different item groups on different parts of the scene, group->scenePos() infos are not the same although i get them on top of each other.
Is that an expected behavior, or am i missing something?
Thanks in advance...
I create a QGraphicsItemGroup from existing graphicsItems on the scene.
Strange thing: When i debug the initial position of QGraphicsItemGroup , I always see (0,0)
qDebug()<<theItem->scenePos();
qDebug()<<theItem->pos();
Debug output:
QPointF(0,0)
QPointF(0,0)
When i move the group on the scene the position info is always shifted according to the initial position. For example ; if i create two different item groups on different parts of the scene, group->scenePos() infos are not the same although i get them on top of each other.
Is that an expected behavior, or am i missing something?
Thanks in advance...