rawfool
5th April 2013, 08:40
I invoke a SLOT on click of QSystemTrayIcon activated SIGNAL. The slot does - setWindowState(Qt::WindowActive).
Now I've added context menu which is appearing on right-click of tray-icon. But the Window is also showing on right-click of tray-icon. How do I restrict the setWindowState to be active only on left-click of the tray-icon ?
Thank you.
Now I've added context menu which is appearing on right-click of tray-icon. But the Window is also showing on right-click of tray-icon. How do I restrict the setWindowState to be active only on left-click of the tray-icon ?
Thank you.