源码如下,(文档里的)
#include <QApplication.h>
#include <QPushButton.h>
in main( int argc, char *argv[])
{
QApplication a( argc, argv);
QPushButton hello( "Hello world!");
hello.resize(100,30 );
hello.show();
return a.exec();
执行步骤:
qmake -project
qmake
之后make,出现下列提示:
test@debian:~/studytest/qttest$ make
make: Nothing to be done for `first'.
[ 此贴被晋-dragon在2005-11-10 14:36重新编辑 ]