#include "ctf.h"#include "Global.h"#include "ui_ctf.h"#include <QtGui>#include <QWidget>int Global::k=0;CTF::CTF(QWidget *parent) : QMainWindow(parent), ui(new Ui::CTF){ ui->setupUi(this); //----------------------------------------------------------------------------// MainLayout=new QGridLayout; ui->centralWidget->setLayout(MainLayout); MainLayout->setMargin(40); MainLayout->setSpacing(40); MainLayout->addWidget(ui->label,1,1,2,3); MainLayout->addWidget(ui->CTB,3,1,1,1); MainLayout->addWidget(ui->ChTB,3,3,1,1);