Skip to content

(visuOgreQt): fix hidpi mode for various mouse event

What does this MR do?

Computes correctly the mouse and window coordinate by taking into account HiDPI (retina) display, on each events, instead of only once. This should fix problems when switching display with a different resolution. Still a manual resize may be needed to force relayouting and thus to have correct size computation.

How to test it?

  • Launch OgreViewer, load an image, display the crop widget, drag the handle -> should work
  • Drag the window to another display, try the same as before -> should work

Associated Issues/Merge Requests

Edited by Didier WECKMANN

Merge request reports