@abd_rahman it is a lot easier to help if you tell what you’ve done and tried and what errors you are seeing: Could not find the Qt platform plugin “xcb” in “”
I’m no expert on Qt, but “xcb” is the name for the X11 platform, which you don’t need. But to have Qt applications use Wayland (from qtwayland5
) you need to set QT_QPA_PLATFORM
to “wayland”. Something like:
environment:
QT_QPA_PLATFORM: wayland
You may also need to set something like:
QT_PLUGIN_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt5/plugins/
QT_QPA_PLATFORM_PLUGIN_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt5/plugins/platforms/
HTH