@Jammin44fm said in Problem running application on Linux. Ubuntu 22.04 LTS + Wayland platform.:
I've decided to go with just the wayland-egl platform,
as that is what is suggested by the Qt docs as being the ideal target platform.
Where did you read this? In case it was in this page, do note that it is about making a Wayland compositor with Qt - not a client application (and talks about the EGL hardware integration plugin, which is only tangentially related to the Wayland-EGL platform plugin).
Applications that just run on a Linux desktop against a generic compositor (i.e KDE/Sway/GNOME/etc.) and don't have a particular reason to care about which protocol exactly is used to manage the shared graphics buffers - should use the generic Wayland platform plugin. EGL used to have some support issues around certain compositors and particularly nVidia drivers, so it makes sense for it to be something you explicitly opt into if you insist on using it.
The fact this works when i specify the platform to use, indicates that most things are in place,
I'm just stumped as to why it wont use the wayland-egl by default!!
That's not how it works with platform plugins. Qt won't just load the first one that happens to be available/working - many of the plugins shipped with Qt are for specialized purposes; it would quite confusing indeed if an application would just proceed to load the minimal plugin by default if the i.e. the xcb plugin is missing or broken!
Essentially, if no platform plugins are explicitly requested via command line or environment variable, there is a compiled in default that says what to use. On generic Linux this is xcb , and if Wayland is detected to be running then also wayland (which is provided by libqwayland-generic.so). As to why wayland-egl isn't tried by default as well, see the above.