You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/tutorial/t2/main.cpp

26 lines
569 B

/****************************************************************
**
** TQt tutorial 2
**
****************************************************************/
#include <qapplication.h>
#include <qpushbutton.h>
#include <qfont.h>
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();
}