#include <qapplication.h>
#include <qpushbutton.h>
#include <qpainter.h>
 
 
int main( int argc, char **argv )
{
    QApplication a( argc, argv );
 
    QPushButton hello( "Hello world!" );
    hello.resize( 100, 30 );
 
    a.setMainWidget( &hello );
    QObject::connect( &hello, SIGNAL(clicked()), &a, SLOT(quit()) );

    hello.show();
    return a.exec();
} 

