有一个 hello.cpp的
现在手里写了一个hello.cpp的源文件,能实现的功能是显示一个hello 的界面,请问要经过什么样的步骤才能生成可执行的文件呢?
代码如下
/***hello.cpp***/
#include <qapplication.h>
#include <qlabel.h>
#include <qstring.h>
int main(int argc,char **argv)
{
QApplication app(argc,argv);
QLabel *label=new QLabel(NULL);
QString string("hello");
label->setText(string);
label->setAlignment(Qt::AlignVCenter|Qt::AlignHCenter);
label->setGeometry(0,0,180,75);
label->show();
app.setMainWidget(label);
return(app.exec());
}
这个源文件要怎么样才能生成Makefile文件,进而编译呢,
小弟菜鸟一只,
哪位大侠帮忙啊