I have a QGraphicsEllipseItem which I would like to rotate, but place on a certain location of the scene. I can get it to rotate, but it seems to automatically place the ellipse somewhere else on the scene. This is a snippit of the code I have so far, any help would be appreciated.

Qt Code:
  1. ellipse = new QGraphicsEllipseItem(x-1, y-7, 2, 7);
  2. ellipse->rotate(45.0);
  3. // Tried the following with no success:
  4. // ellipse->setPos(x,y);
  5. // ellipse->setPos(ui.graphicsView->mapFromScene(x,y));
  6. // ellipse->setPos(ui.graphicsView->mapToScene(x,y));
  7. scene->addItem(ellipse);
To copy to clipboard, switch view to plain text mode