Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMacNativeWidget - closing the pop-up menu
Forum Update on Monday, May 27th 2025

QMacNativeWidget - closing the pop-up menu

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.0k Views
  • 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 Offline
    Z Offline
    zzhou
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      szh1
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved