Results 1 to 6 of 6

Thread: Program has unexpectedly finished

  1. #1
    Join Date
    Jul 2010
    Posts
    72
    Thanks
    35
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Program has unexpectedly finished

    I have a code that compiles well. I added a QListWidget and the aplication stopped poping up, since th aplication "had unexpectedly finished" (exited with code 0). I removed the QListWidget and it still doesn't work. What should I do to check why the application is behaving in this (weird) way?

    Thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Program has unexpectedly finished

    An exit code with 0 means a normal exit. Can you show us some code reproducing your problem. Sometimes it helps to rerun qmake and build your project again.

  3. The following user says thank you to Lykurg for this useful post:

    Maluko_Da_Tola (11th August 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    72
    Thanks
    35
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Program has unexpectedly finished

    I am using Ubuntu. This is quite a basic question: How do I run qmake? Do I have to use the Ubuntu command line the qmake? I normally compile and run the code using Qt creator interface, by clicking the run button (is it equivalent?). This unexpectedly finishing keeps happening when I click the run button!

    Thank you
    Last edited by Maluko_Da_Tola; 10th August 2010 at 23:04.

  5. #4
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Program has unexpectedly finished

    In Qtcreator menu search for a button "buil" or "rebuil all" or something like that
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  6. The following 2 users say thank you to john_god for this useful post:

    Maluko_Da_Tola (11th August 2010), zzqh007 (1st December 2010)

  7. #5
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Program has unexpectedly finished

    Quote Originally Posted by john_god View Post
    In Qtcreator menu search for a button "buil" or "rebuil all" or something like that
    This is very useful. A same questions already has bored me for hours.

  8. #6
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Program has unexpectedly finished

    hi,
    What should I do to check why the application is behaving in this (weird) way?
    pls try to clean and run qmake and compile the project again
    ensure the permission of the folders and files

    hope it helps
    Bala

Similar Threads

  1. Replies: 1
    Last Post: 7th November 2012, 22:28
  2. application finished, now what?
    By jbca in forum Newbie
    Replies: 2
    Last Post: 11th August 2010, 06:09
  3. which one has finished with QFutrueWatcher
    By wookoon in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2010, 12:41
  4. Replies: 2
    Last Post: 14th July 2009, 14:25
  5. QSystemTrayIcon closed " unexpectedly"
    By tzioboro in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2006, 17:12

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.