-
Notifications
You must be signed in to change notification settings - Fork 1
UX - Live Mouse Coordinates in Status Bar #6
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Title:
UX: Display Live Mouse Coordinates in Status Bar
Description:
To assist users in precisely aligning elements and tracing over reference images, we need a live readout of the mouse cursor's X and Y coordinates relative to the canvas (Scene coordinates). This should match the behavior of the original SAGE GUI Editor.
Tasks:
- Ensure the main application window has a
QStatusBaractive at the bottom. - Enable mouse tracking on the main
QGraphicsViewwidget by callingsetMouseTracking(True). - Intercept mouse movements (either by overriding
mouseMoveEventin the view or using an event filter). - Convert the viewport coordinates to scene coordinates using
mapToScene(event.pos()). - Format the coordinates into a readable string (e.g.,
X: 382, Y: 139) and push this text to a permanent or temporary widget on the right side of the status bar.
Acceptance Criteria:
- Moving the mouse across the central canvas updates the status bar coordinates instantly.
- The displayed coordinates accurately reflect the 800x600 (or current scale) internal coordinate system, not the physical monitor pixels.
- When the mouse leaves the canvas area, the coordinates either clear or show the last known position smoothly without crashing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers