QtQuick wrong Device Pixel Ratio (DPR) when using multiple screens with different DPR
-
Hi,
I have a retina mac book pro connected with a bigger screen:
Screen1: LCD (retina, devicePixelRatio=2) 1280x800 (in device points)
Screen2: LED Cinema Display (non retina, devicePixelRatio=1) 1920x1200The problem is this:
If my QtQuick main window starts in Screen2, it detects the wrong screen (Screen1). Therefore, if I drag the window to Screen1, no signal is raised that the monitor is changed. This prevents me to update my OpenGL renderer with the new devicePixelRatio.I have written a simple test application in QML to show this:
import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 ApplicationWindow { id: appWin title: qsTr("Hello World") width: 440 height: 320 visible: true Screen.onDevicePixelRatioChanged: { console.log("dpr changed"); dprSignalId.text = "dpr changed at seconds: " + new Date().getSeconds(); } Column{ Text{ id: screenTextId text: Screen.name + " " + Screen.devicePixelRatio + " " + Screen.width + "x" + Screen.height } Text{ id: dprSignalId } } }
-
@mrjj well… It depends ;) Asking to move the post to a better suited sub-forum is the usual thing to do
@bdg85 Did you check the bug report system ? IIRC, there was something about that (but I can't be 100% positive)
-
No no, you can ask an moderator or admin to do that
-
I looks like currently there's no easy way like a badge for that, would be nice though. Yes I am
-
@SGaist
Oh ok, so the flag icon is not for that. ? So say i had a post that needed moving. Would I then message you or post a "please move" or how would one go about it ? Maybe this not the right place to ask. just wondering. -
The flag is to tell moderator that there might be something fishy with a post/thread like content unrelated to Qt, spam etc. and they should look at it.
To move a thread, you would start a chat with a moderator to ask to move your thread when you see it's not in the right section.
-
Is there any way to see from profile if they are a mod/admin ?
thank you for the clarification. -
Currently it doesn't seem so
You're welcome