Results 1 to 12 of 12

Thread: Why is my program segfaulting?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Why is my program segfaulting?

    No, you would try to delete the list object. But you can put all pointers into the list and call
    Qt Code:
    1. qDeleteAll(list);
    To copy to clipboard, switch view to plain text mode 
    or
    Qt Code:
    1. for(int i=0;i<list.size();i++) delete list[i];
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to wysota for this useful post:

    Valheru (1st October 2006)

Similar Threads

  1. program exits
    By ldsjohn in forum Qt Programming
    Replies: 2
    Last Post: 20th September 2006, 19:03
  2. how to embed an existing kde program into Konquerer
    By sephiroth_0 in forum KDE Forum
    Replies: 1
    Last Post: 15th August 2006, 12:21
  3. Release my simple program to other users ?
    By probine in forum Qt Programming
    Replies: 9
    Last Post: 9th July 2006, 23:42
  4. preparing program for release
    By impeteperry in forum Installation and Deployment
    Replies: 5
    Last Post: 22nd April 2006, 19:30
  5. Enter key causing program to exit
    By welby in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2006, 16:11

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.