https://bugs.kde.org/show_bug.cgi?id=504126
--- Comment #5 from Loïc Yhuel <loic.yh...@gmail.com> --- (In reply to Konstantin Ivanov from comment #2) > Should we just abandon offscreen for X11? There would probably still be something which would call KWindowSystem::platform() on the wayland platform. The after switching to offscreen, KWindowSystem::isPlatformWayland() would still return true, which might cause issues in the style or elsewhere. This is even documented in kwindowsystem.h for KWindowSystem::platform() : The Platform gets resolved the first time the method is invoked and cached for further usages. I only see two ways to properly switch to offscreen : - use another way to get themeName, to avoid the creation of the QGuiApplication in the main process : maybe a dedicated subprocess, or a fork() - add something like KWindowSystem::resetPlatform() to reset the cached value -- You are receiving this mail because: You are watching all bug changes.