PDA

View Full Version : Qmap



phillip_Qt
23rd November 2007, 09: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.............

DeepDiver
23rd November 2007, 09: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,

Tom

phillip_Qt
23rd November 2007, 09: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?

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