123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567 |
- #include "MainWnd.h"
- #include "ui_MainWnd.h"
- #include "Login.h"
- #include <QMouseEvent>
- #include <qDebug>
- #include "OriginalWnd/OriginalWnd.h"
- MainWnd::MainWnd(QWidget *parent)
- : QMainWindow(parent)
- , ui(new Ui::MainWnd)
- {
- ui->setupUi(this);
- initForm();
- }
- MainWnd::~MainWnd()
- {
- delete ui;
- }
- void MainWnd::initForm()
- {
- // 隐藏原生标题栏
- setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog);
- // 窗口背景透明
- setAttribute(Qt::WA_TranslucentBackground, true);
- QPixmap pixmap(":/images/light/logo1.png");
- QPixmap scaledPixmap = pixmap.scaled(90, 49, Qt::KeepAspectRatio);
- ui->label_logo->setPixmap(scaledPixmap);
- Login *login = new Login;
- ui->stackedWidget_UI->addWidget(login);
- ui->stackedWidget_UI->setCurrentIndex(ui->stackedWidget_UI->indexOf(login));
- //登录监听
- ui->label_logo->installEventFilter(this);
- ui->stackedWidget_UI->installEventFilter(this);
- //安装监听事件,点击左侧按钮图标变化
- ui->tabHomeBtn->installEventFilter(this);
- ui->tabProductionBtn->installEventFilter(this);
- ui->tabProgramBtn->installEventFilter(this);
- ui->tabMessageBtn->installEventFilter(this);
- ui->tabModuleBtn->installEventFilter(this);
- ui->tabDispositionBtn->installEventFilter(this);
- ui->tabDiagnosisBtn->installEventFilter(this);
- ui->tabSystemBtn->installEventFilter(this);
- ui->tabHelpBtn->installEventFilter(this);
- }
- bool MainWnd::eventFilter(QObject *obj, QEvent *event)
- {
- if (obj == this->ui->stackedWidget_UI)
- {
- onCurrentWidgetChanged();
- }
- if (obj == this->ui->label_logo)
- {
- //判断事件类型是否为鼠标事件
- if (event->type() == QEvent::MouseButtonPress)
- {
- //转换为鼠标事件
- QMouseEvent* mouseenevt = static_cast<QMouseEvent*>(event);
- //判断鼠标左键点击
- if (mouseenevt->button() == Qt::LeftButton)
- {
- Login *login = new Login;
- ui->stackedWidget_UI->addWidget(login);
- ui->stackedWidget_UI->setCurrentIndex(ui->stackedWidget_UI->indexOf(login));
- return true;
- }
- }
- }
- switch(event->type())
- {
- case QEvent::MouseButtonPress:
- {
- if(obj == ui->tabHomeBtn && ui->tabHomeBtn->isEnabled())
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/deep/home.png"));
- ui->tabHomeBtn->setChecked(true);
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabProductionBtn && ui->tabProductionBtn->isEnabled())
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/deep/Productionn assistance.png"));
- ui->tabProductionBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabProgramBtn && ui->tabProgramBtn->isEnabled())
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/deep/Program.png"));
- ui->tabProgramBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabMessageBtn && ui->tabMessageBtn->isEnabled())
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/deep/Message.png"));
- ui->tabMessageBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabModuleBtn && ui->tabModuleBtn->isEnabled())
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/deep/Module.png"));
- ui->tabModuleBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabDispositionBtn && ui->tabDispositionBtn->isEnabled())
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/deep/Disposition.png"));
- ui->tabDispositionBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabDiagnosisBtn && ui->tabDiagnosisBtn->isEnabled())
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/deep/Diagnosis.png"));
- ui->tabDiagnosisBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabSystemBtn && ui->tabSystemBtn->isEnabled())
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/deep/System.png"));
- ui->tabSystemBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- }
- }
- if(obj == ui->tabHelpBtn && ui->tabHelpBtn->isEnabled())
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/deep/Help.png"));
- ui->tabHelpBtn->setChecked(true);
- if(ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- }
- if(ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- }
- if(ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- }
- if(ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- }
- if(ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- }
- if(ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- }
- if(ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- }
- if(ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- }
- }
- break;
- }
- case QEvent::HoverEnter:
- {
- if(obj == ui->tabHomeBtn && ui->tabHomeBtn->isEnabled())
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/deep/home.png"));
- }
- if(obj == ui->tabProductionBtn && ui->tabProductionBtn->isEnabled())
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/deep/Productionn assistance.png"));
- }
- if(obj == ui->tabProgramBtn && ui->tabProgramBtn->isEnabled())
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/deep/Program.png"));
- }
- if(obj == ui->tabMessageBtn && ui->tabMessageBtn->isEnabled())
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/deep/Message.png"));
- }
- if(obj == ui->tabModuleBtn && ui->tabModuleBtn->isEnabled())
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/deep/Module.png"));
- }
- if(obj == ui->tabDispositionBtn && ui->tabDispositionBtn->isEnabled())
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/deep/Disposition.png"));
- }
- if(obj == ui->tabDiagnosisBtn && ui->tabDiagnosisBtn->isEnabled())
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/deep/Diagnosis.png"));
- }
- if(obj == ui->tabSystemBtn && ui->tabSystemBtn->isEnabled())
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/deep/System.png"));
- }
- if(obj == ui->tabHelpBtn && ui->tabHelpBtn->isEnabled())
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/deep/Help.png"));
- }
- break;
- }
- case QEvent::HoverLeave:
- {
- if(obj == ui->tabHomeBtn && ui->tabHomeBtn->isChecked() == false)
- {
- ui->tabHomeBtn->setIcon(QIcon(":/images/light/home.png"));
- ui->tabHomeBtn->setChecked(false);
- }
- if(obj == ui->tabProductionBtn && ui->tabProductionBtn->isChecked() == false)
- {
- ui->tabProductionBtn->setIcon(QIcon(":/images/light/Productionn assistance.png"));
- ui->tabProductionBtn->setChecked(false);
- }
- if(obj == ui->tabProgramBtn && ui->tabProgramBtn->isChecked() == false)
- {
- ui->tabProgramBtn->setIcon(QIcon(":/images/light/Program.png"));
- ui->tabProgramBtn->setChecked(false);
- }
- if(obj == ui->tabMessageBtn && ui->tabMessageBtn->isChecked() == false)
- {
- ui->tabMessageBtn->setIcon(QIcon(":/images/light/Message.png"));
- ui->tabMessageBtn->setChecked(false);
- }
- if(obj == ui->tabModuleBtn && ui->tabModuleBtn->isChecked() == false)
- {
- ui->tabModuleBtn->setIcon(QIcon(":/images/light/Module.png"));
- ui->tabModuleBtn->setChecked(false);
- }
- if(obj == ui->tabDispositionBtn && ui->tabDispositionBtn->isChecked() == false)
- {
- ui->tabDispositionBtn->setIcon(QIcon(":/images/light/Disposition.png"));
- ui->tabDispositionBtn->setChecked(false);
- }
- if(obj == ui->tabDiagnosisBtn && ui->tabDiagnosisBtn->isChecked() == false)
- {
- ui->tabDiagnosisBtn->setIcon(QIcon(":/images/light/Diagnosis.png"));
- ui->tabDiagnosisBtn->setChecked(false);
- }
- if(obj == ui->tabSystemBtn && ui->tabSystemBtn->isChecked() == false)
- {
- ui->tabSystemBtn->setIcon(QIcon(":/images/light/System.png"));
- ui->tabSystemBtn->setChecked(false);
- }
- if(obj == ui->tabHelpBtn && ui->tabHelpBtn->isChecked() == false)
- {
- ui->tabHelpBtn->setIcon(QIcon(":/images/light/Help.png"));
- ui->tabHelpBtn->setChecked(false);
- }
- }
- default:
- break;
- }
- return QWidget::eventFilter(obj, event);
- }
- void MainWnd::onCurrentWidgetChanged() {
- QWidget *currentWidget = ui->stackedWidget_UI->currentWidget();
- if (currentWidget) {
- QString currentWidgetName = currentWidget->objectName();
- if (currentWidgetName == "Login") {
- QString styleSheet = "QToolButton:disabled { color: #808080; background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F8FBFF, stop: 1 #E7ECF3); }"; // 设置禁用状态下的文本颜色为灰色
- ui->tabHomeBtn->setDisabled(true);
- ui->tabHomeBtn->setStyleSheet(styleSheet);
- ui->tabProductionBtn->setDisabled(true);
- ui->tabProductionBtn->setStyleSheet(styleSheet);
- ui->tabProgramBtn->setDisabled(true);
- ui->tabProgramBtn->setStyleSheet(styleSheet);
- ui->tabMessageBtn->setDisabled(true);
- ui->tabMessageBtn->setStyleSheet(styleSheet);
- ui->tabModuleBtn->setDisabled(true);
- ui->tabModuleBtn->setStyleSheet(styleSheet);
- ui->tabDispositionBtn->setDisabled(true);
- ui->tabDispositionBtn->setStyleSheet(styleSheet);
- ui->tabDiagnosisBtn->setDisabled(true);
- ui->tabDiagnosisBtn->setStyleSheet(styleSheet);
- ui->tabSystemBtn->setDisabled(true);
- ui->tabSystemBtn->setStyleSheet(styleSheet);
- ui->tabHelpBtn->setDisabled(true);
- ui->tabHelpBtn->setStyleSheet(styleSheet);
- } else {
- ui->tabHomeBtn->setDisabled(false);
- ui->tabProductionBtn->setDisabled(false);
- ui->tabProgramBtn->setDisabled(false);
- ui->tabMessageBtn->setDisabled(false);
- ui->tabModuleBtn->setDisabled(false);
- ui->tabDispositionBtn->setDisabled(false);
- ui->tabDiagnosisBtn->setDisabled(false);
- ui->tabSystemBtn->setDisabled(false);
- ui->tabHelpBtn->setDisabled(false);
- }
- }
- }
- void MainWnd::on_tabHomeBtn_clicked()
- {
- // OriginalWnd *originalWnd = new OriginalWnd(this);
- // ui->stackedWidget_UI->addWidget(originalWnd);
- // ui->stackedWidget_UI->setCurrentIndex(ui->stackedWidget_UI->indexOf(originalWnd));
- }
- void MainWnd::on_pushButton_clicked()
- {
- qApp->quit();
- }
|