There is no way to be notified about a shape change. An attempt to add that notification was made once, but it proved complicated, and GraphicsView is only maintained, not extended anymore.
Best solution in your case is probably to write your own line item. Then you have full control.