I am experiencing "no respond" with Qt Creator when editing certain source file.
I compiled Qt using Visual Studio 2010, and is doing fine with many example/demo projects, but sometimes when I try some code example from the web, while in the code editor, Qt creator just "hang", no respond, no cursor when moved within the Qt Creator's window, sometimes it response after sever minutes, sometimes it just ever response and must be killed by using the task manager's "End Process" command on Windows.

My config is Windows 7 64 bit, Qt Creator 2.1, Qt 4.7.1 (32 bit).

For instance, this source file always "hang" after some random seconds:

In pro file:

SOURCES += \
Program.cpp

In the Program.cpp:

#include "QtGui\QtGui"

void loadModules(){}

int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap("C:\\Users\MyUserName\\Desktop\ \Splash.bmp"));
splash->show();

Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash->showMessage(QObject::tr("Setting up the main window..."), topRight, Qt::white);

QMainWindow mainWin;
splash->showMessage(QObject::tr("Loading modules..."),topRight, Qt::white);
loadModules();

mainWin.show();
splash->finish(&mainWin);
delete splash;
return app.exec();
}