Hi everyone,

I created a map
Qt Code:
  1. QMap<QString, VelocityModel> vmMap;
To copy to clipboard, switch view to plain text mode 

I try to do this, to retrieve a VelocityModel object.
Qt Code:
  1. vmMap.value(key);
To copy to clipboard, switch view to plain text mode 
but I get this error:

c:/Qt/4.4.3/include/QtCore/../../src/corelib/tools/qmap.h:438: error: no matching function for call to `VelocityModel::VelocityModel()'
velocitymodel.h:7: note: candidates are: VelocityModel::VelocityModel(const VelocityModel&)
velocitymodel.h:10: note: VelocityModel::VelocityModel(QString, QString)

The only constructor I have is this one:
Qt Code:
  1. VelocityModel::VelocityModel (QString modelName, QString modelFile )
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include <QtGui>
  2. #include "velocitymodel.h"
  3.  
  4. VelocityModel::VelocityModel (QString modelName, QString modelFile ) : mModelName( modelName ), mModelFile( modelFile ) {}
  5. QString VelocityModel::modelName() const { return mModelName; }
  6. QString VelocityModel::modelFile() const { return mModelFile; }
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. #ifndef _VELOCITYMODEL_H_
  2. #define _VELOCITYMODEL_H_
  3.  
  4. #include <QString>
  5. #include <QStringList>
  6.  
  7. class VelocityModel {
  8.  
  9. public:
  10. VelocityModel ( QString modelName, QString modelFile );
  11. QString modelName() const;
  12. QString modelFile() const;
  13.  
  14. private:
  15. QString mModelName;
  16. QString mModelFile;
  17. QStringList velocities;
  18. };
  19.  
  20. #endif /* _VELOCITYMODEL_H_ */
To copy to clipboard, switch view to plain text mode 

Is there something I need to declare in my velocitymodel class, in order to retrieve the object?