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. QMenu blocks mouse events
QtWS25 Last Chance

QMenu blocks mouse events

Scheduled Pinned Locked Moved General and Desktop
mouseeventright-clickqmenu
2 Posts 2 Posters 1.4k 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.
  • M Offline
    M Offline
    m_jero
    wrote on last edited by
    #1

    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
    0
    • M m_jero

      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 Offline
      D Offline
      derbinger
      wrote on last edited by
      #2

      @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
      0

      • Login

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