Add "CONFIG+=console" to your project file, rerun qmake and build the project.