Results 1 to 4 of 4

Thread: Qmap

  1. #1
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Qmap

    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.............
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  2. #2
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qmap

    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

  3. #3
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qmap

    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?
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  4. #4
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qmap

    In the error T = File::IBungPtr.
    In the declaration you have T=qint32.
    This doesn't match.

Similar Threads

  1. QMap
    By AnithaRagupathy in forum Qt Programming
    Replies: 5
    Last Post: 23rd November 2007, 13:26
  2. Problems using QMap
    By importantman in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2006, 22:43
  3. QMap Problem with arguments.
    By ankurjain in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2006, 12:12
  4. QMap destructor bug
    By Ruud in forum Qt Programming
    Replies: 6
    Last Post: 8th April 2006, 09:08
  5. Is there a Pointer Based QMap or Similar
    By vasudhamirji in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 14:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.