You often need QApplication(for the GUI, for others to use QCoreApplicaiton) an object before doing anything useful in Qt.
Try declaring one at the top of main:
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
...
return a.exec();
}
a.exec() 0 ( ) , , . , .
OTOH, WebKit exec - , .