I am working on a game in Qt. My characters/objects are stored in my model Class (I try to follow the MVC model).
I created a QMap containing for each of the object :
QMap<int, Safe*> *safes;
QMap<int, Mushroom*> *mushroom;
QMap<int, Floor*> *floors;
But then I would like to retrieve all theses QMap in my Controller and send it to the paintEvent() class of my View from the controller. Is there a way to store the QMap in a QList like this :
QList<QMap<int, void*>>
And then cast it ? I am searching for a way to acces to theses QMap from a single object.
Thank you for your help !