I got this strange problem:
I write an program using Qt(core/gui/sql/webkit), and it works just fine.
But a few days ago it suddenly broken. The executable file would EXIT right after it was started, both the DEBUG/RELEASE version have this odd issue.
This is what i’ve tried to figure out the reason:
-
I put a breakpoint right in the file
main.cpp, the lineQApplication a(argc, argv).But it seems that the debuger even not reach that point. -
I try my project on an other PC, and the problem is still there.
Any advise is appreciated.
Addition:
ENV: Win7/VS2010/Qt-4.8.4
The main.cpp:
#include "adeditor.h"
#include <QtGui/QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ADEditor w;
w.show();
return a.exec();
}
The adeditor inherits from the class QMainWindow.
FIXED BUT I DONNOT KNOW WHY
Here is the solution:
I create a New project and Copy all the content of each file in the original project and It just worked.
I strongly want to know how it happens so the next time it occurred to me, i would like to know how to deal with i properly .
Posting my comment as an answer so it gets a little bit of visibility for future visitors: