Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89007

mapFromGlobal gives wrong result for QGLWidget inside a QMdiArea

    XMLWordPrintable

Details

    • Windows

    Description

      When having multiple QGLWidgets inside a QMdiArea, only the first one does map the global event position (or the cursor position) to local widget coordinates correctly (ie. mapFromGlobal() gives correct result). All the other QGLWidget give wrong results.

      BTW, as far as i understand, the QGLWidget does not show up correctly.

      Using any other Widget, in particular a QOpenGLWidget behaves correctly.

      Run the attached project, and move the mouse above the widgets. The mouse position gets displayed in the bottom frame.

       

      I forgot to mention that there is no issue with Qt 5.9.4.

      Attachments

        1. GlobalMousePositionTest.zip
          4 kB
        2. qtbug89007.jpg
          qtbug89007.jpg
          127 kB
        3. qtbug89007.zip
          3 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tof Christophe Winkler
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes