#include "systemtrayicon.h" #include #include SystemTrayIcon::SystemTrayIcon(QObject* parent) : QSystemTrayIcon(parent) { } bool SystemTrayIcon::event(QEvent* event) { if (event->type() == QEvent::Wheel) { emit WheelEvent(static_cast(event)->delta()); return true; } return QSystemTrayIcon::event(event); }