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