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

Updating a QQuickFramebufferObject during key release emits outdated mouse hover event

XMLWordPrintable

    • Linux/X11, Windows

      Attached is a small project to reproduce the issue. Hovering the mouse over the program window will write messages to standard output describing the emitted events.

      In our production code, we have a mouse handler which causes an OpenGL scene to be redrawn when the user presses or releases the alt key with the mouse pointer hovered over the scene viewport. Similarly, in the reproduction project, I have put a call to QQuickItem::update in the custom key press and release event handlers. When pressing and releasing alt, I get the following output from the test program:

      Pressed key alt!
      Hover move event! With no modifiers
      Released key alt!
      Hover move event! With modifiers: alt

      So an "outdated" hover event is emitted after the alt key has been released. The production component in question has recently been migrated from QtWidgets to QtQuick, and we have not experienced this issue with QtWidgets, so there seems to be a divergence in behavior.

        1. qt-repro.zip
          3 kB
        2. qt-repro-2.zip
          3 kB
        For Gerrit Dashboard: QTBUG-105744
        # Subject Branch Project Status CR V

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            snorgaard Sebastian Bossolini Nørgaard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change