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

Disabling parent of MouseArea in onPressed gets stuck with mouse but not through touch

XMLWordPrintable

    • 61a9612f5b (qt/qtdeclarative/dev) 61a9612f5b (qt/tqtc-qtdeclarative/dev)

      Seems that there is a difference in event delivery logic for mouse and touch. If parent of MouseArea is disabled in onPressed handler, the pressed state is remains active. When later enabled again, the MouseArea does not respond to clicks anymore.

      This works fine with touch event though. And also if MouseArea itself is being disabled instead of its parent.

      To reproduce:

      • run attached example
      • click upper blue rectangle
        -> it remains yellow
      • click lower blue rectangle to enable it
        -> does not respond to clicks anymore, unless double clicked first

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

            srutledg Shawn Rutledge
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes