HellowWorld程序如下!
#include <Qt3Support>
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app (argc, argv);
QLabel *label = new QLabel("Hello Qt!", 0);
app.setMainWidget(label);
label->show();
return app.exec();
}