View Full Version : Qmap

23rd November 2007, 10:23
HI All

Im passing argument like QMap<qint32, qint32> m_MapVal;

But getting error..........
c:/Qt/4.3.0/include/QtCore/../../src/corelib/tools/qmap.h: In member function `QMapData::Node* QMap<
Key, T>::node_create(QMapData*, QMapData::Node**, const Key&, const T&) [with Key = qint32, T = File::IBungPtr]':

where File is namespace and IBungPtr is interface pointer.

CAn any body help me plz.............

23rd November 2007, 10:27
If you declare the map as QMap<qint32, qint32>: Why is T = file::IBungPtr ????
Maybe a basic book about C++ and templates will help!

Good luck,


23rd November 2007, 10:45
soerry. i didnt get ur reply clearly.
In header file i ve added
#include <QMap>
namespace File
class abc
QMap<qint32, qint32> m_MapFahrzeiten;
in cpp m_MapFahrzeiten.clear();
wats the wrong with this codes?

23rd November 2007, 11:43
In the error T = File::IBungPtr.
In the declaration you have T=qint32.
This doesn't match.