diff --git a/src/plugins/platforms/offscreen/qoffscreenintegration.cpp b/src/plugins/platforms/offscreen/qoffscreenintegration.cpp index 14218bb537..310e71ae13 100644 --- a/src/plugins/platforms/offscreen/qoffscreenintegration.cpp +++ b/src/plugins/platforms/offscreen/qoffscreenintegration.cpp @@ -113,6 +113,8 @@ QOffscreenIntegration::QOffscreenIntegration() QOffscreenIntegration::~QOffscreenIntegration() { + for (auto screen : std::as_const(m_screens)) + QWindowSystemInterface::handleScreenRemoved(screen); } /*