QMenu focusOut event
Hello,
I have a problem with focus out event in QMenu subclass.
The problem is as fallow:
I have QSystemTrayIcon and on it QMenu. MainWindow is hidden so It don't receive any events.
What I want to do is to hide QMenu when user click outside of QMenu.
I tried focusOutEvent but this is not trigered when I click outside of QMenu (QMenu has on show: setFocus( Qt::MouseFocusReason ) and setFocusPolicy( Qt::StrongFocus ) ).
So the question how to hide menu assigned to QSystemTrayIcon when user clicks outside of that menu?
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks