How to detect if Wayland or X11 is used?
Solved
General and Desktop
-
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. -
Hi
Would QGuiApplication::platformName() work? -
Hi
Would QGuiApplication::platformName() work?@Abderrahmene_Rayene
Ha! I knew it would be something as simple as that... -