Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.2
-
None
-
macOS Sequoia 15.3.2
Qt 6.8.2 (official build)
Apple Clang 16.0.0
Description
Description:
After opening a QMessageBox and interacting with it using the keyboard (e.g., pressing Space or Enter to confirm), setCursor() no longer updates the cursor properly. The issue is inconsistent but occurs frequently.
Steps to Reproduce:
- Run the provided minimal example.
- Press Command + Drag to pan an image—this should correctly change the cursor to a hand icon.
- Right-click to open a QMessageBox and interact with it using Space or Enter.
- Try panning again—the cursor remains an arrow instead of changing to a hand.
Expected Behavior:
The cursor should update correctly after interacting with the QMessageBox, just as it does before opening it.
Actual Behavior:
After dismissing the QMessageBox with the keyboard, setCursor() no longer changes the cursor as expected.
Additional Information:
- A minimal example is attached.
- The [GitHub repository|https://github.com/eKevinHoang/QGraphicsBug] contains detailed steps and discussion.
- The issue was also discussed on the Qt Forum: [Qt Forum Thread|https://forum.qt.io/topic/161460/setcursor-stops-working-after-interacting-with-qmessagebox-using-space-key/11].