QT_QPA_PLATFORM=xcb missing, Viewport completely white/black when running on wayland

Description:

QT_QPA_PLATFORM=xcb missing

Relates to upstream https://github.com/FreeCAD/FreeCAD/issues/17491, Viewport completely white/black when running on wayland

There is even mentioned "We might want to tell Arch Repo people to make this flag default for all users. Until EGL is supported upstream"

QT_QPA_PLATFORM=xcb freecad

Additional info:

Steps to reproduce:

  1. Install freecad
  2. Use Wayland
  3. Run FreeCAD
  4. Create or open any Part
  5. Notice that 3d view does not show the configured background nor part
  6. Close FreeCAD
  7. Restart with QT_QPA_PLATFORM=xcb freecad
  8. Retry and notice that 3d view is working fine