QApplication.screens() with two laptops connected to the same monitor
-
I am listing all monitors being used and adding them to my widget. Here is the relevant part:
from PySide6 import QtWidgets as qtw . . . . screens = qtw.QApplication.screens() for screen in screens: geo = screen.geometry() self.cb_Screen.addItem(f"{screen.name()}")
It works fine, but I have a monitor that switches between two different laptops (the laptop built-in screens being primary). The thing is, both laptops are always connected, and the switch is in the monitor itself. Even if the other laptop is using that monitor, and even if it is black due to the other laptop being on the lock screen, it gets picked up in
qtw.QApplication.screens()
. I assume this is by design, but could there be a way to filter out the screen that is being used by the other laptop? Not a big deal if not, but I am curious about it.I am using PySide6 6.9.1 on Windows 11 in case that is relevant.
-
Hi,
I don't think there is since the screen is likely seen as present and active even if switched to the other screen.
How is it seen by the system settings ?
-