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/t3/main.cpp

29 lines
613 B

/****************************************************************
**
** TQt tutorial 3
**
****************************************************************/
#include <ntqapplication.h>
#include <ntqpushbutton.h>
#include <tqfont.h>
#include <ntqvbox.h>
int main( int argc, char **argv )
{
TQApplication a( argc, argv );
TQVBox box;
box.resize( 200, 120 );
TQPushButton quit( "Quit", &box );
quit.setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) );
a.setMainWidget( &box );
box.show();
return a.exec();
}