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. Show 2 QMenus simultaneously (one is always unresponsive)

Show 2 QMenus simultaneously (one is always unresponsive)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 165 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    tfox
    wrote on last edited by
    #1

    I'm working with a node editor (left-to-right style) in a QGraphicsScene, and on right-click of a node I want options dealing with the inputs in a menu on the left of the mouse, and options dealing with outputs in a menu on the right.
    The problem is when I create 2 QMenus and popup() both, only one of the two responds to hovers and clicks. If I click off that one, then the second one starts responding.
    How the heck can I get both of them to respond?

    If it matters, I'm doing this in an embedded python and PySide2. And I'm creating the menus using my own event filter into the main program's QGraphicsScene that I can't change.

    Pl45m4P 1 Reply Last reply
    0
    • T tfox

      I'm working with a node editor (left-to-right style) in a QGraphicsScene, and on right-click of a node I want options dealing with the inputs in a menu on the left of the mouse, and options dealing with outputs in a menu on the right.
      The problem is when I create 2 QMenus and popup() both, only one of the two responds to hovers and clicks. If I click off that one, then the second one starts responding.
      How the heck can I get both of them to respond?

      If it matters, I'm doing this in an embedded python and PySide2. And I'm creating the menus using my own event filter into the main program's QGraphicsScene that I can't change.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @tfox said in Show 2 QMenus simultaneously (one is always unresponsive):

      The problem is when I create 2 QMenus and popup() both, only one of the two responds to hovers and clicks. If I click off that one, then the second one starts responding.
      How the heck can I get both of them to respond?

      I don't think this is possible (at least not out-of-the-box) nor intuitive and does not make sense at all.
      Popups are not supposed to act like windows and stay open and active while doing other stuff.

      See here:
      https://www.qtcentre.org/threads/49795-Implement-two-menus-at-the-same-time!


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      2

      • Login

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