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.
29 lines
612 B
29 lines
612 B
/****************************************************************
|
|
**
|
|
** TQt tutorial 3
|
|
**
|
|
****************************************************************/
|
|
|
|
#include <ntqapplication.h>
|
|
#include <tqpushbutton.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();
|
|
}
|