Qt Forum

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

    Unsolved QMenu misplaced in dual screen system after upgrade to Qt 5.15

    General and Desktop
    2
    4
    389
    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.
    • rkhaotix
      rkhaotix last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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

        rkhaotix 2 Replies Last reply Reply Quote 0
        • rkhaotix
          rkhaotix @SGaist last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • rkhaotix
            rkhaotix @SGaist last edited by rkhaotix

            @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 Reply Quote 0
            • First post
              Last post