Results 1 to 6 of 6

Thread: Values not being appended in a QList

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Values not being appended in a QList

    Hi..

    the Problem is solved...

    I was able to find out my mistake and have solved it..

    Thank you...

    Kapil
    All you have to decide is what to do with the time that is given to you

  2. #2
    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: Values not being appended in a QList

    It could be nice (or even useful for someone in the future) to hear what was the problem..
    J-P Nurmi

  3. #3
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Values not being appended in a QList

    Hi...

    Sure...

    The problem was not with QList but was with the object creation.. u can say a more of C++ problem... I was filling up the QList using one object say obj1 but somewhere by mistake had created another object say obj2 via which i was trying to access the QList.. so it returned me a 0 size 'coz for that object (obj2) the QList was not initialized but was intialized for obj1...
    This was the error which i feel a dumb person like me would do it

    take care...

    Kapil
    All you have to decide is what to do with the time that is given to you

Similar Threads

  1. Sorting using qSort(), - if QList contains POINTERS
    By joseph in forum Qt Programming
    Replies: 13
    Last Post: 18th August 2013, 18:55
  2. QList, copy problems
    By Valheru in forum Qt Programming
    Replies: 4
    Last Post: 5th February 2010, 00:06
  3. Accessing QList Objects
    By magikalpnoi in forum Qt Programming
    Replies: 7
    Last Post: 21st September 2006, 20:43

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.