summaryrefslogtreecommitdiffstats
path: root/tutorial/t2/main.cpp
blob: 1b3da3f1d92d272cd0d07f1030d230fd114318d6 (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 <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();
}