PDA

View Full Version : Graphics View not updating



Lionel
10th July 2013, 15:20
I am facing a problem with a graphicsLineItem in a graphicsView. The lineItem is activated by a selection made on a tabWidget. The issue is that the lineItem is not highlighting when the appropriate item on the tabWidget is clicked, rather it highlights when the mouse hovers over the graphicsView.

I feel its cause the graphicsView is not refreshing, but use of update with sceneRect() as parameter is not solving te problem.

Need some suggestions and solutions for the same.

ChrisW67
12th July 2013, 08:57
We need a small, self-contained example of what you are doing that is not working. There is no auto-magical connection between "a selection made on a tabWidget" (whatever that means) and the selection state of a QGraphicsItem.