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

some MouseArea's signals are weirdly triggered

    XMLWordPrintable

Details

    • Linux/X11
    • 49308d5d0 (dev), d6c5a3113 (6.8), 8502e870f (tqtc/lts-6.5)

    Description

      Hi, I think I have been through a bug in the MouseArea

       

      first point: It is about onPositionChanged signal. I can't find out why this signal is not triggered when the mouse enters for the first time in the MouseArea. I did not see this behavior if I use the mouseDrag function instead of mouseMove.

       

      second point: on the project I linked the onExited signal triggers inexplicably in the middle of the test

       

      this is the kind of output I got

      ```

      QDEBUG : MouseArea::test_mouse_move() qml: move to -1,-1
      QDEBUG : MouseArea::test_mouse_move() qml: move to 25,25
      QDEBUG : MouseArea::test_mouse_move() qml: onEntered
      QDEBUG : MouseArea::test_mouse_move() qml: move to 50,50
      QDEBUG : MouseArea::test_mouse_move() qml: onPositionChanged 50 , 50
      QDEBUG : MouseArea::test_mouse_move() qml: move to 100,100
      QDEBUG : MouseArea::test_mouse_move() qml: onExited
      QDEBUG : MouseArea::test_mouse_move() qml: move to 150,150
      QDEBUG : MouseArea::test_mouse_move() qml: onEntered
      QDEBUG : MouseArea::test_mouse_move() qml: move to 175,175
      QDEBUG : MouseArea::test_mouse_move() qml: onPositionChanged 175 , 175

      ```

       

      ~same output with Qt 5.15.2 as Qt 6.5.3~

      erratum: the second point shows up only with Qt6. The rest of the bug remains unchanged

       

      What do you think ? Am I missing something ?

      Attachments

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

        Activity

          People

            oulu_hillbilly Sami Varanka
            hlefevre Henry Lefevre
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes