I guess you create a new QGraphicsLineItem, with scene as parent, it addition to this, make sure you add the newly created object of QGraphicsLineItem, to the scene using QGraphicsScene::addItem().
I assume you are referring to calling update() on the view. Calling update on the view is not required, the graphics scene will internally manage updating the view.





Reply With Quote

Bookmarks