Results 1 to 5 of 5

Thread: The program has unexpectedly finished.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Apr 2012
    Location
    Paris
    Posts
    11
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The program has unexpectedly finished.

    If you click in the button and no items are selected, ui->treeWidget->currentItem() return NULL.
    And when the line ptr->isSelected() is executed, your program crash...
    You need to add robustness.

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

    smemamian (31st March 2013)

Similar Threads

  1. Replies: 2
    Last Post: 28th March 2013, 22:28
  2. Replies: 4
    Last Post: 17th September 2012, 15:23
  3. the program has unexpectedly finished
    By narlapavan in forum Qt Programming
    Replies: 9
    Last Post: 9th July 2012, 09:04
  4. Replies: 6
    Last Post: 24th June 2012, 18:32
  5. Program has unexpectedly finished
    By Maluko_Da_Tola in forum Newbie
    Replies: 5
    Last Post: 1st December 2010, 09:54

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