PDA

View Full Version : I need help understanding QGraphicsItem::paint() function.



ayanda83
11th April 2015, 11:19
I have a few QGraphicItems in a QList<QGraphicsItem*>. Now my problem is that I want to update the background of some of the items in the list but when I do that the changes seem to happen on the other items that I do not want to change. I don't understand how this happens because when I update the items I am interested in, I call them by their location in the list but some how the other items not referenced are affected by the changes.

wysota
11th April 2015, 13:32
Please provide a minimal compilable example reproducing the problem.