I had a small project based on Qt4, ITK and OpenSceneGraph. It's main function is shown below.
Code:
int main( int argc, char **argv )
{
	QApplication app(argc, argv);
	MainWindow mainForm = new MainWindow();
	mainForm.show();
	return app.exec();    
}
There was a problem, however. The window had no taskbar button. I spent quite some time figuring it out, and in the end it all came down to a very...