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).
|For Gerrit Dashboard: QTBUG-67467|
|225087,3||Windows QPA: Fix override cursor not working when re-entering the window||5.11||qt/qtbase||Status: MERGED||+2||0|