How to detect if Wayland or X11 is used?
Solved
General and Desktop
-
wrote on 24 Apr 2023, 09:48 last edited by
Is there any (reasonably simple) way to detect within my Qt application (6.4) whether I am running on X11 or Wayland?
I can check for OS first using Q_OS_LINUX, so the code could even be platform-specific. -
wrote on 24 Apr 2023, 11:35 last edited by
Hi
Would QGuiApplication::platformName() work? -
Hi
Would QGuiApplication::platformName() work?wrote on 24 Apr 2023, 11:38 last edited by@Abderrahmene_Rayene
Ha! I knew it would be something as simple as that... -
2/3