Results 1 to 7 of 7

Thread: app core dumps!!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: app core dumps!!

    Because you add each item to the list twice:
    Qt Code:
    1. ...
    2. layers_item[19]= new QListWidgetItem("Bookshops",layers); // <-- here
    3.  
    4. for (int i=0;i<=NumItems; i++){
    5. layers_item[i]->setCheckState(Qt::Unchecked);
    6. layers->addItem(layers_item[i]); // <-- and here
    7. }
    To copy to clipboard, switch view to plain text mode 
    Remove the second line from that for loop and everything should be OK.

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

    Seema Rao (2nd May 2006)

Similar Threads

  1. openGL in Qtopia core
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 18th July 2008, 11:26
  2. Qt designer differences in qt-x11 and qtopia core
    By hungr in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 20th August 2007, 03:06
  3. Qtopia Core & OpenGL ES?
    By zelko in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th May 2007, 07:21
  4. OpenGL ES, Qt/11 - Qtopia Core?
    By zelko in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2007, 10:56
  5. Problem of Core Dropped!
    By Stephano in forum General Programming
    Replies: 1
    Last Post: 10th May 2006, 15:59

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.