|
| From: | John Swensen |
| Subject: | [Octave-bug-tracker] [bug #49053] figure scaling issue with Qt 5 on macOS with Retina / HiDPI scaling |
| Date: | Wed, 24 Jan 2018 18:33:44 -0500 (EST) |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.113 Safari/537.36 |
Follow-up Comment #89, bug #49053 (project octave):
I also just confirmed that when switching between screens with a
devicePixelRatio of 1.0 and 2.0, the drawing is messed up (being to big or too
small depending on which screen you first initialize the QTHandles from).
So, I am proposing one of two things:
1) Each time the screen scale is needed, we walk up the handle tree and
determine the screen for the window backing the current operation and query
the devicePixelScale
or
2) Store the devicePixelScale in each figure object (query at creation and
listen for the QWindow::screenChanged(Screen*) signal after that) and then
have anything that needs the screen scale to walk back up the handle tree to
its parent figure to retrieve the value.
Thoughts on the two approaches?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49053>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |