Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.0 Beta1 , 6.0.2, 6.4.0 RC1
-
None
-
Mac OS X 10.8.5
-
-
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
For Gerrit Dashboard: QTBUG-35409 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
433723,3 | DA: Avoid corrupting persistent scenePosition in QHoverEvent ctor | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
433917,3 | Rename QHoverEvent ctor pos argument to scenePos | dev | qt/qtbase | Status: MERGED | +2 | 0 |
433918,2 | DA: Avoid corrupting persistent scenePosition in QHoverEvent ctor | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
433922,2 | DA: Avoid corrupting persistent scenePosition in QHoverEvent ctor | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |
434728,2 | Rename QHoverEvent ctor pos argument to scenePos | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |