6#include <QSystemTrayIcon>
33 void showMessage(
const QString &title,
const QString &msg,
int time);
63 void createTrayIcon();
67 QAction *minimizeAction;
68 QAction *maximizeAction;
69 QAction *restoreAction;
72 QSystemTrayIcon *sysTrayIcon;
74 QMainWindow *parentwin;
void showHideParent()
Toggle the visibility of the associated main window.
void iconActivated(QSystemTrayIcon::ActivationReason reason)
Handle activation events from the system tray icon.
void showMessage(const QString &title, const QString &msg, int time)
Display a transient notification message via the tray icon.
TrayIcon(QMainWindow *parent)
Construct a TrayIcon associated with the given main window.
void setVisible(bool visible)
Show or hide the tray icon and its associated UI.
auto getIsAllocated() -> bool
Check whether tray resources have been allocated and initialized.