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

MouseArea does not detect mouse pointer if it was already there on Mac OS X

    XMLWordPrintable

Details

    • Linux/X11, macOS
    • c069e85342 (qt/qtdeclarative/dev) c069e85342 (qt/tqtc-qtdeclarative/dev) 95de3442c5 (qt/qtdeclarative/6.4) 95de3442c5 (qt/tqtc-qtdeclarative/6.4)

    Description

      On Mac OS X, when you load a component dynamically in QML and the mouse pointer is already placed where a MouseArea appears, the mouse pointer is not detected and the property containsMouse stays false. You need to click and/or move the mouse for it to work.
      This does not happen on Windows.

      Attached a simple example:

      • Open the app
      • Place the mouse on top of the rectangle => changes color.
      • Don't move the mouse and close the app.
      • Restart the app => Rectangle stays red until you move the mouse and/or click

      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
            koopajah Remi J.
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews