QML OpenGl layout issue with a retina screen
-
Hi, I have an OpenGL window integrated in a software. With classic screen there is no problem with my openGl Window but with a retina screen ... problem. So I am using devicePixelRatio to fix the size of the window. But there is still a problem with anchors. I am using the property anchors.fill: parent but with a retina screen, anchors.left and anchors.right are half the width (and height) I want (half because for retina screen: devicePixelRatio = 2).
Something like :
anchors.left: parent.left*screen.devicePixelRatio will be perfect but of course this is,impossible with a QQuickAnchorLine...If you have any idea to help me to fix this, thanks for your help.
PS: I prefer to avoid using the relative properties x and y of each item which would make my code very complex (because of the size of the software and the QML hierarchy)