PDA

View Full Version : Program has unexpectedly finished



Maluko_Da_Tola
10th August 2010, 21:54
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

Lykurg
10th August 2010, 22:15
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.

Maluko_Da_Tola
10th August 2010, 22:39
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

john_god
11th August 2010, 02:44
In Qtcreator menu search for a button "buil" or "rebuil all" or something like that

zzqh007
1st December 2010, 07:07
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.

BalaQT
1st December 2010, 09:54
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