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

#include <ntqapplication.h>
#include <ntqpushbutton.h>


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

    TQPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );

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