Results 1 to 4 of 4

Thread: QMutableListIterator pointing outside QList

  1. #1
    Join Date
    Oct 2012
    Location
    Ghana
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QMutableListIterator pointing outside QList

    After appending an item to a QList which is pointed to by a QMutableListIterator,
    I find out the next value of the iterator points outside the list.
    Or can't i point the iterator to any where in the list except the beginning and end?
    Please i need help.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMutableListIterator pointing outside QList

    Where did the iterator point before you appended the item? Did you append it using this iterator?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2012
    Location
    Ghana
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMutableListIterator pointing outside QList

    The iterator was pointing to the front of the list

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMutableListIterator pointing outside QList

    So how did you append the item?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Problem pointing to a QStringList
    By ljuhrich in forum Qt Programming
    Replies: 10
    Last Post: 10th November 2012, 19:58
  2. Replies: 4
    Last Post: 20th August 2010, 13:54
  3. Pointing Two Dimensional Pointer to return value
    By babu198649 in forum General Programming
    Replies: 5
    Last Post: 24th April 2009, 19:16
  4. Replies: 4
    Last Post: 9th January 2009, 11:57
  5. QMutableListIterator remove() crashing on Windows
    By Valheru in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2008, 10:05

Tags for this Thread

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.