Hi,

I have two classes a Model and a Dataset
Suppose I need to create a map between two Pointers. for Egs
Qt Code:
  1. QMap<Model*, DataSet* > mapModelPtrToDataSet;
To copy to clipboard, switch view to plain text mode 

The code is working and I get the DataSet* for the Model* That i give to the Map

But Since I understood recently that the QMap is ValueBased... And all the DataSet* would not get delete in the Destructor of the Map. Is there an Pointer Based alternative ?

Thanks in Advance