Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5.2
Description
QTBUG-112829 started to use serial number to differentiate monitors, but it seems like Qt only gets partial serial number and the unique part of the number is missing. So two monitors of same model likely have identical serial number from Qt point of view.
Here is the output with 2 Acer B326HK monitors:
Qt 6.5.1:
C:\qt\src\qt-everywhere-src-6.5.1\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(530): Initializing screen manager C:\qt\src\qt-everywhere-src-6.5.1\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(543): Created display change observer 0x1808fe C:\qt\src\qt-everywhere-src-6.5.1\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(647): New Monitor: Screen "B326HK" 3840x2160+0+0 avail: 3840x2100+0+0 physical: 708x399 DPI: 144x144 Depth: 32 Format: QImage::Format_RGB32 hMonitor: 0x154080f device name: \\.\DISPLAY1 primary virtual desktop C:\qt\src\qt-everywhere-src-6.5.1\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(647): New Monitor: Screen "B326HK" 3840x2160+-3840+0 avail: 3840x2100+-3840+0 physical: 708x399 DPI: 144x144 Depth: 32 Format: QImage::Format_RGB32 hMonitor: 0x7e0bd9 device name: \\.\DISPLAY2 virtual desktop
Qt 6.5.2:
C:\qt\src\qt-everywhere-src-6.5.2\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(669): Initializing screen manager C:\qt\src\qt-everywhere-src-6.5.2\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(682): Created display change observer 0x3312e6 C:\qt\src\qt-everywhere-src-6.5.2\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(786): New Monitor: Screen "B326HK" 3840x2160+0+0 avail: 3840x2100+0+0 physical: 708x399 DPI: 144x144 Depth: 32 Format: QImage::Format_RGB32 hMonitor: 0x154080f device name: \\.\DISPLAY1 manufacturer: Acer Technologies model: B326HK serial number: T1NEE0018532 primary virtual desktop C:\qt\src\qt-everywhere-src-6.5.2\qtbase\src\plugins\platforms\windows\qwindowsscreen.cpp(519): Monitor "B326HK" has had its hMonitor handle changed from 0x154080f to 0x7e0bd9