Very simple Qt GUI application:
- On the scene I have multiple circles implemented as QGraphicsItem
- boundingRect returns square around this circle.
- Method 'shape' is not overridden.
The problem appears when in paint() method I've added:
if (isSelected()) {
painter->drawRect(re);
}
Selection is drawn well, but unselection doesn't cause redrawing. At log level I can see that item really lost selection flag. Calling update() from itemChange is useless also. Thank you in advance for any suggestion.