Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.10.1
-
None
-
Windows 10 pro
-
2823cc6d4b24b26f82c991c532b749baa9dbb3a7 (qtbase/5.11, 5.4.2018, 5.11)
Description
I have a quite complex QML application where I need to change the application cursor shape.
Because of the complexity, I do not have the possibility to handle the cursor shape by using only MouseAreas.
I tried to find a solution by checking the Qt documentation but it seems that there is no way to do it directly in QML.
Anyway I read that it is possible to use setOverrideCursor() and restoreOverrideCursor() QGuiApplication methods.
I tried to use them in my application but I found two problems happening after calling setOverrideCursor():
1) When I move the mouse cursor over a QML MouseArea that changes the cursor shape when it is hovered on, the cursor shape does not change.
This is annoying especially in case of resize handles, but it is not blocking like problem #2.
2) When I move the mouse cursor outside the Window and come back inside it, the override cursor shape is not restored.
In the attached example call setOverrideCursor() by clicking on the upper button.
After that, try to move the cursor on the red rectangle and notice that Qt.SizeHorCursor is not shown (problem #1).
Now try to move cursor outside the window, move back inside it and notice the override cursor is not restored (problem #2).
Attachments
Issue Links
- relates to
-
QTBUG-65001 REG 5.9->5.10/Windows: Override cursors are not restored when nested or in dual monitor setup
- Closed
-
QTBUG-67509 QML: add API to change default application cursor
- Reported
For Gerrit Dashboard: QTBUG-67467 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
225087,3 | Windows QPA: Fix override cursor not working when re-entering the window | 5.11 | qt/qtbase | Status: MERGED | +2 | 0 |