Quote Originally Posted by Andrewshkovskii View Post
if i do like this :

Qt Code:
  1. void Model::setUpGraphicScene(QStandardItemModel *model,int size)
  2. {
  3. this->visualResultModel->setSceneRect(this->vrptr->rect());
  4. static QFont font("Times",9);
  5. int x = - (this->vrptr->geometry().height()/2);
  6. //Are your sure it is correct to set a x coordinate with height()?
  7. ...
  8. }
To copy to clipboard, switch view to plain text mode 
I think you need to re-thinking your item management, since you seems to not use graphics features as usual way.

QGraphicsView is a view of a QGraphicsScene.
When unsing QGraphicsItem::setPos, you are positionning item in the scene as data regarless of the view portion of the scene displayed in the view.
So the point(0,0) is the center of the scene, whatever shows the view.

To put your item at topleft corner of the view, you can use QGraphicsView::mapToScene to convert pixel coordinates of the viewport to scene coordinates. see the-graphics-view-coordinate-system

But if you dont move the view, every item will be at same position!

But this still not explain why your sceneRect grows in y-axis...