summaryrefslogtreecommitdiffstats
path: root/tutorial/t2/main.cpp
blob: cc1d59432a9ed34041f17cfcaaf0691af5e798bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/****************************************************************
**
** TQt tutorial 2
**
****************************************************************/

#include <ntqapplication.h>
#include <tqpushbutton.h>
#include <tqfont.h>


int main( int argc, char **argv )
{
    TQApplication a( argc, argv );

    TQPushButton quit( "Quit", 0 );
    quit.resize( 75, 30 );
    quit.setFont( TQFont( "Times", 18, TQFont::Bold ) );

    TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) );

    a.setMainWidget( &quit );
    quit.show();
    return a.exec();
}