QSystemTrayIcon
The QSystemTrayIcon class provides an icon for an application in the system tray.
Example
QMainWindow
를 상속받은 클래스의 구현부에서 아래와 같이 추가하면 된다.
#include <QSystemTrayIcon>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QSystemTrayIcon *tray = new QSystemTrayIcon(QIcon(QPixmap(":/res/ic_tray.png")), this);
tray->show();
}