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

Too many Enter/leave events generated for native widgets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 2
    • Fix Version/s: 5.1.0 Beta 1
    • Labels:
      None
    • Environment:
      Windows 7 (fixed)
      Linux (should be fixed now)
      Mac ?
    • Commits:
      bdc0eaae6b47eebbf99bea1034857287fb75aa46 9a90c2232f1e21b3f61da6c3a472380bcb996736 b2c73c73cd0a68aae0586cf447c2612c13aeb52c

      Description

      Mousing into and out of native widget should only generate enter/leave for that specific widget. However, currently enter/leave is generated for the entire parent chain, e.g.:

      // enter combobox
      1363 ## Got Leave for: QWidget(0x20bbcf0, name = "centralWidget") 
      1364 ## Got Leave for: MainWindow(0x19fb40, name = "MainWindow") 
      1367 ## Got Enter for: MainWindow(0x19fb40, name = "MainWindow") 
      1369 ## Got Enter for: QWidget(0x20bbcf0, name = "centralWidget") 
      1370 ## Got Enter for: QComboBox(0x2118560, name = "comboBox") 
      
      // leave combobox
      1685 ## Got Leave for: QComboBox(0x2118560, name = "comboBox") 
      1687 ## Got Leave for: QWidget(0x20bbcf0, name = "centralWidget") 
      1688 ## Got Leave for: MainWindow(0x19fb40, name = "MainWindow") 
      1691 ## Got Enter for: MainWindow(0x19fb40, name = "MainWindow") 
      1693 ## Got Enter for: QWidget(0x20bbcf0, name = "centralWidget") 
      

        Attachments

        1. main.cpp
          2 kB
        2. main.cpp
          1 kB
        For Gerrit Dashboard: QTBUG-27550
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            e0348803 Miikka Heikkinen
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes