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

MouseArea containsMouse is incorrect while button is pressed on another MouseArea

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.1, 6.4.0 Beta4
    • None

    Description

      The value of 'containsMouse' is not correct when mouse button is held when the cursor enters the mouse area. To replicate with the attached sample app:
      1. Left click in the outer mouse area (white), then
      2. Drag the cursor into the center rectangle.

      I would expect that after step 2 the rectangle should change color. Even after releasing the mouse button inside the mouse area, the rectangle does not change color until the mouse moves inside the area without a button being pressed.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              spbots Stephan Bots
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes