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
QStatusBar active at the bottom.
- Enable mouse tracking on the main
QGraphicsView widget by calling setMouseTracking(True).
- Intercept mouse movements (either by overriding
mouseMoveEvent in 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:
Title:
UX: Display Live Mouse Coordinates in Status BarDescription:
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:
QStatusBaractive at the bottom.QGraphicsViewwidget by callingsetMouseTracking(True).mouseMoveEventin the view or using an event filter).mapToScene(event.pos()).X: 382, Y: 139) and push this text to a permanent or temporary widget on the right side of the status bar.Acceptance Criteria: