1. 写好项目后,进入项目目录,qmake -project 生成项目文件xxx.pro 2. qmake-qt4 xxx.pro :这一步生成makefile文件 3.make 编译生成可执行文件hello