How to get physical screen infomation when display mirror?
-
I have an external monitor on my windows pc, I can get both monitors information when set to extend display mode, but when I set display mode to mirror, QGuiApplication::screens() can only get the information of one display.
@Boewey Qt on Windows uses EnumDisplayMonitors API to list display screens. There's only one display screen in the mirror mode, so that's what you get.
If you want information about the physical devices connected to your system you would use the EnumDisplayDevices API instead, but I don't think there's any Qt wrapper over it. -
@Boewey Qt on Windows uses EnumDisplayMonitors API to list display screens. There's only one display screen in the mirror mode, so that's what you get.
If you want information about the physical devices connected to your system you would use the EnumDisplayDevices API instead, but I don't think there's any Qt wrapper over it.@Chris-Kawa Thanks.
-