Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Help!!! how to builde a qt program in eclipse!

I use Linux and I want build a Qt program file in eclipse,The file is as below:

#include <qapplication.h>
#include <qmainwindow.h>

int main(int argc,char **argv)
{
	
	QApplication myApp(argc,argv);
	QMainWindow* myWin=new QMainWindow(0,0,0);
	myWin->resize(500,300);
	myWin->move(200,100);
	myApp.setMainWidget(myWin);
	myWin->show();
	return myApp.exec();
}

I add the QT_HOME to this project and the eclipse can find the Header
file.But I cann't build and run this program.What can I do next?
PLease give me some advice on it!Thanks a lot!


Back to the top