/**************************************************************** ** ** TQt tutorial 2 ** ****************************************************************/ #include #include #include int main( int argc, char **argv ) { TQApplication a( argc, argv ); TQPushButton tquit( "Quit", 0 ); tquit.resize( 75, 30 ); tquit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); TQObject::connect( &tquit, SIGNAL(clicked()), &a, SLOT(tquit()) ); a.setMainWidget( &tquit ); tquit.show(); return a.exec(); }