#include <QtGui>
#include "extensionDlg.h"
ExtensionDlg::ExtensionDlg(QWidget *parent):QDialog(parent)
{
setupUi(this);
this->extensionGroupBox->hide();
connect(this->detailButton, SIGNAL(clicked()), this, SLOT(checkStaus()));
mainVerticalLayout->setSizeConstraint(QLayout::SetFixedSize);
}
void ExtensionDlg::checkStaus()
{
if (this->extensionGroupBox->isHidden())
{
this->extensionGroupBox->show();
}
else
{
this->extensionGroupBox->hide();
}
}
这样就可以显示扩展部分了