4#include <QSystemTrayIcon>
18 explicit TrayIcon(QMainWindow *parent);
19 void showMessage(
const QString &title,
const QString &msg,
int time);
31 void createTrayIcon();
35 QAction *minimizeAction;
36 QAction *maximizeAction;
37 QAction *restoreAction;
40 QSystemTrayIcon *sysTrayIcon;
42 QMainWindow *parentwin;
Handles the systemtray icon and menu.
void showHideParent()
TrayIcon::showHideParent toggle app visibility.
void iconActivated(QSystemTrayIcon::ActivationReason reason)
TrayIcon::iconActivated you clicked on the trayicon.
void showMessage(const QString &title, const QString &msg, int time)
TrayIcon::showMessage show a systray message for notification.
bool getIsAllocated()
TrayIcon::getIsAllocated return if TrayIcon is allocated.
void setVisible(bool visible)
TrayIcon::setVisible show or hide the icon.