Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    QMacNativeWidget - closing the pop-up menu

    General and Desktop
    2
    2
    2853
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zzhou last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • S
        szh1 last edited by

        Try this: "http://doc.trolltech.com/4.7/qwidget.html#focusOutEvent":http://doc.trolltech.com/4.7/qwidget.html#focusOutEvent.

        Hope it helps!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post