[问题点数:40分]
等级
本版专家分:0
结帖率 0%
上图是debug的截图。主要用到下面这个文件的代码,代码太长,删除了一些头文件。
DialogWhole::DialogWhole(QWidget *parent, MainWindow *parentmainwindow, int flag)
: QDialog(parent)
{
ParentMainwindow = parentmainwindow;
Ok_Button = new QPushButton(tr("Opt"));
GA_Button = new QPushButton(tr("GA"));
Cancel_Button = new QPushButton(tr("Close"));
connect(Cancel_Button, SIGNAL(clicked()), this, SLOT(reject()));
if (flag==0)
connect(Ok_Button, SIGNAL(clicked()), this, SLOT(Optimize_Power()));
connect(GA_Button, SIGNAL(clicked()), this, SLOT(Optimize_Power_GA()));
setWindowTitle(tr("Optimize Power Coils"));
resize(300,350);
br> else
connect(Ok_Button, SIGNAL(clicked()), this, SLOT(Optimize_Whole()));
connect(GA_Button, SIGNAL(clicked()), this, SLOT(Optimize_Power_GA()));
setWindowTitle(tr("Optimize the Whole System"));
resize(300,400);
br>
PCB_Length_Label = new QLabel(tr("Secondary PCB Size (cm)br>PCB_Length_Edit = new QLineEdit(tr