#include "tray.h" #include "ui_tray.h" #include Tray::Tray(QWidget *parent) : QDialog(parent) { this->setupUi(); } Tray::~Tray() { delete ui; } /** * @brief Tray::setupUi */ void Tray::setupUi() { trayIcon = new QSystemTrayIcon(QIcon(":/icon/printer-ok.png"), this); trayIcon->show(); }