Hi, this is my first post here,

My question is about console apps, when I start a new console application project in Qt Creator I get a main function like this:

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);

printf("Hello world!");

return a.exec();
}

and when I run the app, it never exits. It seems to hang at a.exec(). What's happening?