Results 1 to 5 of 5

Thread: QMap Issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Unhappy QMap Issue

    I have QMap<MyClass*, bool> and I need to remove the oldest item. Can someone provide the code to do it?

    I tried removing last Key and first Key, but it still doesn't work properly.

    Does it sort the map somehow? And if it does, is there a way to prevent it.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QMap Issue

    Quote Originally Posted by ManuMies View Post
    Does it sort the map somehow? And if it does, is there a way to prevent it.
    http://doc.qt.nokia.com/4.7/qmap.html

Similar Threads

  1. QMap
    By sophister in forum Qt Programming
    Replies: 5
    Last Post: 25th May 2009, 10:05
  2. QMap
    By AnithaRagupathy in forum Qt Programming
    Replies: 5
    Last Post: 23rd November 2007, 13:26
  3. Qmap
    By phillip_Qt in forum Qt Programming
    Replies: 3
    Last Post: 23rd November 2007, 10:43
  4. [solved] Qmap and pointer issue
    By Lykurg in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2007, 14:34
  5. Reg - QMap(Qt3.3.4)
    By suresh in forum Newbie
    Replies: 3
    Last Post: 18th October 2006, 22:04

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
  •  
Qt is a trademark of The Qt Company.