summaryrefslogtreecommitdiffstats
path: root/qmake/examples/tutorial/main.cpp
blob: 064c20667fd1dbf0a0afd4a25e2991eb0bfb48d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <qapplication.h>
#include "hello.h"

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

    MyPushButton* hello = new MyPushButton( "Hello world!" );
    hello->resize( 100, 30 );

    a.setMainWidget( hello );
    hello->show();
    return a.exec();
}