http://www.usamimi.info/~guiprog/qt_online/chapter1/chapter1.pdf

#include
#include

int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}

                                                                                              • -

http://www.kde.gr.jp/~ichi/qt/t1.html

#define QT3_SUPPORT
#include
#include
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();
}

                                                                                                  • -

1. qmake -project
2. qmake hello.pro
3. make