void InternalToolBox::setShowing(const bool show) { if (show) { showToolBox(); } else { hideToolBox(); } m_showing = show; }
FormMain::FormMain(QWidget *parent) : QWidget(parent), ui(new Ui::FormMain) { ui->setupUi(this); this->setWindowFlags(Qt::FramelessWindowHint); createPages(); connect(ui->stackedWidget->widget(m_formIndex.value(FORMLOGIN)),SIGNAL(closeMainForm()) ,this,SLOT(on_btnClose_clicked())); connect(ui->stackedWidget->widget(m_formIndex.value(FORMLOGIN)),SIGNAL(changeToMaintain()) ,this,SLOT(LoginSuccess())); hideToolBox(); setWidgetSize(400,300); //焦点默认给登陆界面 ((FormLogin*)ui->stackedWidget->widget(m_formIndex.value(FORMLOGIN)))->setFocus(); }