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

Regression: Leave and enter events are not generated for non-native widgets when there is a popup open

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.0.0 Beta 2
    • None
    • Windows 7 (and most likely other platforms as well, but not verified)

    Description

      In Qt4, whenever there is a popup open, leave and enter events are still generated for widgets when mousing over them. In Qt5, this is only the case with native widgets.

      Use the attached application to see the issue:

      1) Click "Popup" button -> leaves are generated for the widget stack at that location (this is correct)

      2) Move mouse so that it is still over "Popup" button -> No enter is generated. Enters should be generated for the widget stack at that location on first mouse move after opening the popup.

      3) Mouse over various other widgets -> no leave and enter events are generated for other widgets as is expected.

      Uncomment the following define in mainwindow.cpp to enable native widgets:

      #define NATIVE_WIDGETS
      

      Repeat the steps with native widgets enabled -> leave and enter events are generated for widgets in step 3). Step 2) also fails for native widgets.

      Note: For test case, expand tst_QWidget::underMouse().

      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