diff --git a/mainwindow.cpp b/mainwindow.cpp index 7225c74e2cd06527557f38bbae2c3ce22ba58185..b72aecd17c3d6d19a0bfa2c7f3baf0def6924ab8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -54,9 +54,15 @@ MainWindow::MainWindow(QWidget* parent) : QMenu* menu = new QMenu(); - auto configAction = new QAction("Configuration", this); + auto configAction = new QAction(tr("Configuration"), this); menu->addAction(configAction); + auto exitAction = new QAction(tr("Exit"), this); + connect(exitAction, &QAction::triggered, [this](){ + QCoreApplication::exit(); + }); + menu->addAction(exitAction); + sysIcon.setContextMenu(menu); sysIcon.show();