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 misplaced in dual screen system after upgrade to Qt 5.15

QMenu misplaced in dual screen system after upgrade to Qt 5.15

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 795 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.
  • rkhaotixR Offline
    rkhaotixR Offline
    rkhaotix
    wrote on last edited by
    #1

    Hey guys!

    Today, after upgrade my Qt installation from 5.14.2 to 5.15.0, I was surprised by a strange behavior of any QMenu instance that I have assigned to QToolButtons.

    I have a dual screen system where Screen 1 is a 2K monitor and Screen 2 is a FullHD monitor. Until Qt 5.14 the QMenu was working without problems (being displayed aside or below the respective "parent" object) but today I noticed that when I click any of the QToolButton or QAction that has a QMenu programatically assigned (see the highlighted items) the associated menu always appears on the Screen 2 at the bottom-right corner no matter the position of the sender button/action or the main window itself on Screen 1. If I move the main window to Screen 2 the menu works properly.

    In the sample image the menu being displayed in Screen 2 is associated to the action "Sample models" on Screen 1.
    Is there something I doing wrong? Qt 5.15 has changed QMenu behavior?

    Any guidance is pretty much appreciated.
    Thanks in advance.

    qmenu_bug.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you provide a minimal compilable example ?
      Did you already check the bug report system ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      rkhaotixR 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you provide a minimal compilable example ?
        Did you already check the bug report system ?

        rkhaotixR Offline
        rkhaotixR Offline
        rkhaotix
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Can you provide a minimal compilable example ?
          Did you already check the bug report system ?

          rkhaotixR Offline
          rkhaotixR Offline
          rkhaotix
          wrote on last edited by rkhaotix
          #4

          @SGaist Yes, I here's a minimal example: https://gofile.io/d/qskj8g

          It also acts like the menus of my project... very strange.
          I'll look in the bug tracker system. Thanks!

          EDIT: found some reports on bug tracker... it seems to affect 5.15 on Linux and Windows (QTBUG-84545 , QTBUG-84462 )
          qmenu_test.png

          qmenu_test1.png

          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