summaryrefslogtreecommitdiffstats
path: root/tutorial/t1/main.cpp
blob: 23f72032defc62df08e033abf4ba90a9323a2060 (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 <qapplication.h>
#include <qpushbutton.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();
}