I use the following set of commands for the "Rebuild All" command in VS C++:

Qt Code:
  1. qmake -project
  2. qmake "QT += network"
  3. nmake release-clean
  4. nmake release
To copy to clipboard, switch view to plain text mode 

I.e., I just pass the "QT += network" to the qmake command

Hope this helps!

Cheers,

bootsector