Maybe this will help: http://wiki.qtcentre.org/index.php?t...pps_with_CMake

You might have to tweak linker flags a bit to make the console disappear.