Forcing QT_QPA_PLATFORMTHEME for all platforms breaks some useful platform integrations that Qt has to offer. For example portals (flatpak integration) and native file picker support. Seeing the GTK file picker open from an Qt applications looks pretty bad especially on KDE. I hope this will be fixed in the Qt 6.2 port but for now I have this patch:
The major problem is that the basic value is pretty bad. Imho a better solution would be to redefine the QT_QPA_PLATFORMTHEME="the platform you want" to override the value
QT_QPA_PLATFORMTHEME isn't set by KDE, Gnome or any Linux distribution but get's set internally depending on the value of XDG_CURRENT_DESKTOP as far is I understand. It would make much more sense to check if XDG_CURRENT_DESKTOP equals KDE or GNOME and only fall back to QT_QPA_PLATFORMTHEME=gtk if none is the case. This patch works on my KDE Desktop: jami-client-qt_platformtheme.patch
For some reason it stopped working and I now learned that CString can't be compared to String directly but has to be converted using std::string() first.
Here is the reworked patch: jami-client-qt_platformtheme.patch
With this change the patch finally works, again.