Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.6.2
-
None
-
Windows 10 running Qt 5.6.2
Description
This has been observed on Windows 10. The scenario is a QMainWindow and a modal dialog with a button. Pressing the button will perform a long task that requires a cursor change. Calling setOverrideCursor() on the QApplication instance will properly change the cursor provided the mouse if over the modal dialog. However, if the mouse is over the QMainWindow instance and a button click is initiated on the modal dialog the cursor does not change. Please see example main.cpp.
I was able to notice that in applyNewCursor() located in qwindowswindow.cpp the call to QWindowsContext::instance()->windowUnderMouse() returns NULL. So it seems that we need to check whether the passed in QWindow instance is modal or not and return true.
Attachments
Issue Links
- relates to
-
QTBUG-98856 Wrong cursor showing when restoreOverrideCursor in QDockWidget
- Closed
- resulted in
-
QTBUG-65001 REG 5.9->5.10/Windows: Override cursors are not restored when nested or in dual monitor setup
- Closed