源文件
Console.pro
#-------------------------------------------------
#
# Project created by QtCreator 2014-02-01T16:45:38
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = Console
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
main.cpp
#include <QDebug>
int main(int argc, char *argv[]) {
qDebug() << "hello beautiful world! this is Sollyu." << endl ;
return 0;
}