#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();
}
} 这样就可以显示扩展部分了
时间: 2024-11-06 09:53:24