How to modify Qt to work with the Librem 5

You have three options:

  1. Use Flatpak. Qt included in KDE runtimes works well on the Librem 5.
  2. Run your app natively with QT_QPA_PLATFORM=xcb DISPLAY=:0 env vars to force X11 backend - Qt in amber-phone repos is too old and doesn’t work well with Wayland backend.
  3. Wait for the next PureOS release, Byzantium, which contains recent Qt in its repos already.
4 Likes