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

Every mouse move causes an enter event to widget under cursor under some circumstances

    XMLWordPrintable

Details

    • dde3f6a934ae26c8e92b0132b1bb85c0aa841ac1

    Description

      There are some circumstances that cause widgets to receive enter event for every mouse move event. Steps to reproduce with attached sample application:

      Modal dialog:

      1) Click "Msg Box" button -> this opens a modal message box.
      2) Move mouse cursor around over the message box -> Observer constant stream of enter events like this in trace.

      20478 ## Got Enter for: QDialogButtonBox(0x43494a0, name = "qt_msgbox_buttonbox") 
      20482 ## Got Enter for: QDialogButtonBox(0x43494a0, name = "qt_msgbox_buttonbox") 
      

      Note: Clicking on anywhere on the message box will stop the excess enter events.

      Widget that is explicitly grabbing mouse events;

      1) Click "Grab Mouse" button -> this grabs mouse events for said button.
      2) Move mouse cursor outside the application main window
      3) Move mouse cursor back over "Grab Mouse" button and move it around over it -> Observe constant stream of enter events like this in trace:

      7902 ## Got Enter for: QWidget(0x1c6dfb0, name = "centralWidget") 
      7903 ## Got Enter for: QPushButton(0x1ccc2b0, name = "grabButton") 
      7917 ## Got Enter for: QWidget(0x1c6dfb0, name = "centralWidget") 
      7918 ## Got Enter for: QPushButton(0x1ccc2b0, name = "grabButton")
      

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes