I have just finished installing and configuring Qt statically, and then followed this tutorial to create a simple "Hello World!" program in Visual Studio 2008. It works perfectly fine, it's just that – it takes up 5 MB of space, for a tiny program! I have made more advanced programs than that in Visual Basic that takes up not much more than 50 kB of space. 5 MB is for the release version, while the debug version takes up 14 MB. How is it possible that this simple program can grow so large, ans is there anything I can do to shrink it? It also takes quite long time to build the project, at least the first time you're building it or if you're making a rebuild.

I have also another question – I wanted to configure Qt statically because I think it's much more neat with a program that doesn't need an external library to run that a program that does need an external library and can't run as a standalone application. But yet the shared Qt configuration seems to be the standard and what is usually recommended, how does that come? Is it considered to be better in some way?

For the rest, I configured Qt from the Visual Studio Command Prompt and the lines I used was these two:

Qt Code:
  1. configure -static
  2. nmake sub-src
To copy to clipboard, switch view to plain text mode