I'm designing a Qt UI and have two different views ( QGraphicsObject
class) for the same model (a car).
When the car's model is to be updated (in one of two widgets), I want both of the views to be updated (and of course the same goes for the model).
The intuitive way to do this is to update the model, and let the views catch a 'signal' or something similar when this happens to update themselves.
I want to know if this is a recommended behavior (in MVC) as it forces the model to have some bidirectional connection with its views (while in MVC the model shouldn't have a list of its views).
Also, what's a good way to implement this in Qt ? (use Qt signals ? raise a flag when the model have been changed ?)