Qt Forum

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

    QMenu blocks mouse events

    General and Desktop
    mouseevent right-click qmenu
    2
    2
    1076
    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.
    • M
      m_jero last edited by

      Hi,
      I'm displaying a few widgets where right click is defined to open a QMenu.
      The problem is that once the menu is displayed, right click in the other widgets doesn't work till the QMenu is closed or any option is selected.
      Any ideas about how to let the mouse events (at least the right click event) reach the other widgets?

      Thanks in advance

      D 1 Reply Last reply Reply Quote 0
      • D
        derbinger @m_jero last edited by

        @m_jero I don't know why nobody answers this question. Maybe because you didn't supply any code snippets as recommended. Anyway, I suppose you used the exec() function to show the qmenu. Try to use popup() instead and see if it works.

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