#include <QtGui/QApplication>
#include <QtGui/QLabel>
#include <QtGui/QWidget>
#include <QtGui/QHBoxLayout>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
QWidget hello;
QLabel hello1("Hello1 World",&hello);
QHBoxLayout layout;
layout.addWidget(&hello1);
hello.show();
QLabel hello2("\n\n\t\t\tHello2 Wrold", &hello); // 但實際上在父Widget的(0, 0)處定位顯示了.
hello2.show();
return a.exec();
}