#include <QApplication>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QWidget>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);//app
QLabel *iLabel = new QLabel,*oLabel = new QLabel;
QLineEdit *cmdLine = new QLineEdit;
QPushButton *commitButton = new QPushButton,*cancelButton = new QPushButton,*browButton = new QPushButton;
commitButton->setText("TestTBB");
QHBoxLayout *cmdLayout = new QHBoxLayout;
cmdLayout->addWidget(oLabel);
cmdLayout->addWidget(cmdLine);
QHBoxLayout *cmdLayout2 = new QHBoxLayout;
cmdLayout2->addWidget(commitButton);
cmdLayout2->addWidget(cancelButton);
cmdLayout2->addWidget(browButton);
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addLayout(cmdLayout);
mainLayout->addLayout(cmdLayout2);
/*chuangkou*/
QWidget w;
w.setLayout(mainLayout);
w.show();
return app.exec();
}