Results 1 to 4 of 4

Thread: CMapWordToOb QT4 equivalent

  1. #1
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default CMapWordToOb QT4 equivalent

    Hi,

    I was wondering what the best or closest container class there is in Qt for MFC's CMapWordToOb ? QMap maybe?

    Kind regards,
    Steve

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: CMapWordToOb QT4 equivalent

    You could try QMap<qint16, QObject*>, but without the serialization functionality.
    This you will have to do it on your own, if you need it.

    Regards

  3. #3
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: CMapWordToOb QT4 equivalent

    Thanks Marcel,

    Don't need the serialization.

    Regards,
    Steve

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: CMapWordToOb QT4 equivalent

    QMap stores its data as ordered. QHash is a faster alternative if the order doesn't matter. More information.
    J-P Nurmi

Similar Threads

  1. setRasterOp Equivalent
    By vermarajeev in forum Qt Programming
    Replies: 22
    Last Post: 31st March 2007, 13:13
  2. Replies: 2
    Last Post: 23rd April 2006, 01:02
  3. what's the equivalent with DPtoLP in windows
    By cocalele in forum Qt Programming
    Replies: 6
    Last Post: 1st March 2006, 06:57
  4. make install equivalent in qmake ...
    By momesana in forum Newbie
    Replies: 3
    Last Post: 20th February 2006, 21:46
  5. PostMessage() across process boundaries equivalent
    By TheKedge in forum Qt Programming
    Replies: 9
    Last Post: 27th January 2006, 00:02

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.