#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hellobtn( "Hello world!", 0 );
hellobtn.resize(100, 20 );
a.setMainWidget( &hellobtn );
hellobtn.show();
return a.exec();
}
这是代码..