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

overlapping HoverHandler onEntered onExited order is different in qt5 and q6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4
    • Extras: Win
    • None
    • Windows

    Description

      in qt 5 overlapping HoverHandler acts as there is no z -z-order - so the overlapping does not affect onEntered ,onExited of the 2 areas

      in qt6
      there is a z-order (first bug!) also, moving the cursor from a bigger z-order to small
      we get (the correct logic of overlapping mouse area)
      qml: blue onEntered
      qml: blue onExited
      qml: red onEntered
      qml: red onExited

      but moving the curser from lower z order to big, we get the wrong logic(for overlapping mouse area) - first enter blue before exiting red area (second bug??)
      qml: red onEntered
      qml: blue onEntered
      qml: red onExited
      qml: blue onExited

      check out the following code
      TNX

      Rectangle { id:red //x:100 y:350 width:250 height:250 color: "red"; HoverHandler { id: redHoverHandler onHoveredChanged: { if ( redHoverHandler.hovered )

      { console.log("red onEntered") }

      else { console.log("red onExited") } } } }
      Rectangle { id:blue x:100 y:350 width:250 height:250 color: "blue"; HoverHandler { id: blueHoverHandler onHoveredChanged: { if ( blueHoverHandler.hovered )

      { console.log("blue onEntered") }

      else { console.log("blue onExited") } } } }

      Attachments

        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
            galgal gal lilos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes