QMacNativeWidget - closing the pop-up menu
-
I have several QMacNativeWidgets with QWebView in my Cocoa application. If I open a pop-up menu in QWebView and then click on non-Qt widget then menu stays open. If I click on another QWidget (even if it's hosted in different QMacNativeWidget) the menu goes away.
How can I send an event to close the menu if the user clicks on non-Qt widget?
-
Try this: "http://doc.trolltech.com/4.7/qwidget.html#focusOutEvent":http://doc.trolltech.com/4.7/qwidget.html#focusOutEvent.
Hope it helps!