https://bugs.kde.org/show_bug.cgi?id=350994

--- Comment #4 from Evgeny Brazgin <k...@xapienz.ru> ---
Also I made a small proof-of-concept app which prints all available screens
with the code:
    qDebug() << "screens";
    foreach (QScreen* screen, QGuiApplication::screens()) {
        qDebug() << "    " << screen << " with name=" << screen->name() << "
and platform screen=" << screen->handle();
    }

When I detach and external monitor and attach it again, I have the output
(before detaching monitor, detached monitor, after attaching it back):
screens:
     QScreen(0x23fcff0)  with name= "HDMI1"  and platform screen= 0x2401850
screens:
     QScreen(0x23fcff0)  with name= "eDP1"  and platform screen= 0x2401850
screens:
     QScreen(0x23fcff0)  with name= "HDMI1"  and platform screen= 0x2401850

It is evident from the output, that the pointer to QScreen object remains the
same, but the name changes.
If necessary, I will upload this app here, just let me know.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to